Closed yyfyan closed 5 years ago
I find the code used classweights is defferent from OCNet. https://github.com/PkuRainBow/OCNet.pytorch/blob/master/utils/loss.py
the code need changed: hist = np.histogram(label_img, self.classes,range=(0,18))
@yyfyan thank u.
I find the code used classweights is defferent from OCNet. https://github.com/PkuRainBow/OCNet.pytorch/blob/master/utils/loss.py