Tramac / awesome-semantic-segmentation-pytorch

Semantic Segmentation on PyTorch (include FCN, PSPNet, Deeplabv3, Deeplabv3+, DANet, DenseASPP, BiSeNet, EncNet, DUNet, ICNet, ENet, OCNet, CCNet, PSANet, CGNet, ESPNet, LEDNet, DFANet)
Apache License 2.0
2.8k stars 581 forks source link

[Question] Why are some keys negative ? #122

Open HareshKarnan opened 4 years ago

HareshKarnan commented 4 years ago

Hi,

I just had a question about the dataset classes. In some of the classes like the cityscapes dataset, the labels are being mapped to negative keys. Why is that ? My understanding is that the image masks come with random labels ranging from 0 to 255 and you are mapping it between -1 to num_labels -1. Is this understanding right ?