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

What is the true label of -1 in seg_label #22

Closed
Iranb opened this issue Oct 17, 2021 · 1 comment
Closed

What is the true label of -1 in seg_label #22

Iranb opened this issue Oct 17, 2021 · 1 comment

Comments

@Iranb
Copy link

Iranb commented Oct 17, 2021

As the TrainDataset output in dataset.py , I got seg_label as
[[ 0, 9, 9, ..., 9, 9, -1],
[ 9, 9, 9, ..., 9, 9, -1],
[ 9, 9, 0, ..., 9, 9, -1],
...,
[ 0, 0, 0, ..., 7, 7, -1],
[ 0, 0, 0, ..., 7, 7, -1],
[ 0, 0, 0, ..., 7, 7, -1]],

    [[ 1,  1,  1,  ...,  1,  1, -1],
     [ 1,  1,  1,  ...,  1,  1, -1],
     [ 1,  1,  1,  ...,  1,  1, -1],
     ...,
     [ 7,  7,  7,  ...,  7,  7, -1],
     [ 7,  7,  7,  ...,  7,  7, -1],
     [ 7,  7,  7,  ...,  7,  7, -1]]])}]`

But the true label range in your paper 0-12 for training and 0-13 for testing. So what is the meaning of "-1" label?

@xksteven
Copy link
Collaborator

xksteven commented Oct 17, 2021

The -1 label if I recall correctly should be ignored.
The docs are from the commit that we based off of in the semantic segmentation repo. So the labels for the model at that version were peculiar in that it didn't use the background if I recall correctly. So we just subtracted all of the labels -1.

Hope that helps.

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