Skip to content
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

Semantic Labels for The Training #25

Open
csBob123 opened this issue Aug 26, 2021 · 6 comments
Open

Semantic Labels for The Training #25

csBob123 opened this issue Aug 26, 2021 · 6 comments

Comments

@csBob123
Copy link

Could I know whether you use the KITTI semantic labels for the training? I guess you only use the semantic labels on Cityscapes.

Thank you for your work.

@klingner
Copy link
Contributor

Hi, I did not use the KITTI semantic labels for training but only the ones from Cityscapes.

@csBob123
Copy link
Author

Hi, I did not use the KITTI semantic labels for training but only the ones from Cityscapes.

Hi, Thank you for your reply. The number of classes on Cityscape is 19, but I found the final output of 'segdecoder' has 20 classes(20 channels).

Could I know the reason and its impacts?

Thank you for your attention.

@klingner
Copy link
Contributor

Hi,

the 20th class is the background class. It is essentially not trained, as in the wieghted cross-entropy loss its weight is set to 0. For the evaluation only the 19 classes of the Cityscapes dataset are considered. In theory it should not really matter, if you only train 19 classes or 19 classes + 1 background class, if the weight of the background class in the loss is set to 0.

@bansilol
Copy link

Hi @klingner
I had a small query about which part of Cityscapes Dataset to download. Up to my understanding we have to use the gtFine_trainvaltest.zip. But it has 30 classes and @csBob123 said the model is trained on 20. Is that okay or do I need to change anything in the code in order to do the segmentation training?

Thanks in Advance :)

@klingner
Copy link
Contributor

Hi, the Cityscapes dataset has 30 classes, but only 19 of them are used for training and the other classes are set to background when training. Effectively, I always use the 19 classes as defined by Cityscapes.

@bansilol
Copy link

Okay. Thanks for clearing up the query. :)

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

3 participants