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

Which index matches which class in ADE20k? #415

Open
mohwald opened this issue Sep 30, 2022 · 0 comments
Open

Which index matches which class in ADE20k? #415

mohwald opened this issue Sep 30, 2022 · 0 comments

Comments

@mohwald
Copy link

mohwald commented Sep 30, 2022

When I output with any model, I got probabilities per class on each pixel. E.g. when I run

model = encoding.models.get_model('DeepLab_ResNeSt101_ADE', pretrained=True).eval()
img = torch.randn(1,3,256,256)
output = model.evaluate(img)
print(output.shape)

I got torch.Size([1, 150, 256, 256]), since there are 150 classes in ADE20k dataset.

However, I did not find anywhere in the code, which prediction of the output[0, :, x, y] corresponds to which of the 150 classes in ADE dataset. Where can I find list of classes?

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