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's the purpose of the multipication of n_classes to label in evaluation code? #88

Open
lx-r opened this issue Jun 1, 2022 · 1 comment

Comments

@lx-r
Copy link

lx-r commented Jun 1, 2022

STDC-Seg/evaluation.py

Lines 56 to 59 in 59ff37f

hist += torch.bincount(
label[keep] * n_classes + preds[keep],
minlength=n_classes ** 2
).view(n_classes, n_classes).float()

@gongliuqing123
Copy link

Hi, are you solve this problem?

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