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

Pan output exceeds number of classes #132

Open
discretecoder opened this issue Mar 10, 2020 · 0 comments
Open

Pan output exceeds number of classes #132

discretecoder opened this issue Mar 10, 2020 · 0 comments

Comments

@discretecoder
Copy link

discretecoder commented Mar 10, 2020

I trained the network on 38 classes. but when i test the model, i tried printing the np.unique(pan) from the output and it has class ids greater than 38 so when i try to feed the sem to color generator, it throws an error since there are only 38 classes in the gt.
how do i fix this

following is how the np.unique(pan) looks like. all the unique pans after 37 do not make any sense as these classes do not exist in the training
[ 2 3 4 10 14 15 18 20 22 24 25 26 27 28 32 33 34 35
36 37 38 39 40 41 42 43 44 45 46 47 48 49 255]
[ 2 3 4 10 14 15 18 20 22 24 25 26 27 28 32 33 34 35
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 255]
[ 2 3 4 9 10 14 18 20 22 23 24 25 26 27 28 32 33 34
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 255]
[ 2 3 4 10 14 18 20 22 23 24 25 26 27 28 32 33 34 35
36 37 38 39 40 41 42 43 44 45 46 47 48 255]

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

1 participant