awesome-semantic-segmentation-pytorch icon indicating copy to clipboard operation
awesome-semantic-segmentation-pytorch copied to clipboard

Why Minus 1 ?

Open Kittywyk opened this issue 5 years ago • 0 comments

  Hi, I'm confused that why you minus 1 in this function of ade.py.

def _mask_transform(self, mask): return torch.LongTensor(np.array(mask).astype('int32') - 1) Thx for ur explanation.

Kittywyk avatar Sep 30 '20 04:09 Kittywyk