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

index_ade20k['objectnames'] indexing mistake #15

Open
gordon-lim opened this issue Aug 10, 2021 · 0 comments
Open

index_ade20k['objectnames'] indexing mistake #15

gordon-lim opened this issue Aug 10, 2021 · 0 comments

Comments

@gordon-lim
Copy link

Using ObjectClassMasks = (R/10).astype(np.int32)*256+(G.astype(np.int32)); I got the id 165 for a particular pixel by which index_ade20k['objectnames'][165] gives 'bed column'. However according to the accompanying json to this image, the object name for 165 should be 'bed'. It seems that index_ade20k['objectnames'] is one behind. index_ade20k[164] gives the correct name 'bed'.

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