MichaelFan01/STDC-Seg

What's the purpose of the multipication of n_classes to label in evaluation code?

Opened this issue · 1 comments

lx-r commented

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()

Hi, are you solve this problem?