Skip to content

How can I change codes for submiting label ID png to test? #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zhy168 opened this issue Jun 5, 2024 · 2 comments
Closed

How can I change codes for submiting label ID png to test? #15

zhy168 opened this issue Jun 5, 2024 · 2 comments

Comments

@zhy168
Copy link

zhy168 commented Jun 5, 2024

I want to use my model to predict test set and save label ID png for submiting result to cityscapes web and get tested.Is there any option to save predict png without using colormap?
thanks a lot !

@zhy168
Copy link
Author

zhy168 commented Jun 5, 2024

image
If I coment line 171 can work?

@zh320
Copy link
Owner

zh320 commented Jul 8, 2024

Hi, to submit your results to cityscapes please refer to the official documents of cityscapes.

If you want to save predict png without using colormap, you may change the following codes

preds = self.colormap[preds.max(dim=1)[1]].cpu().numpy()

into

preds = preds.max(dim=1)[1].cpu().numpy()

Best,

@zh320 zh320 closed this as completed Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants