ESPNet: Cityscape Dataset Error
Hello I have tried to run your code but I have several problem:
- Which cityscapes dataset that you are download?
I have download from this
linkand downloadleftImg8bit_trainvaltest.zip (11GB)and it’s GTgtFine_trainvaltest.zip (241MB) - I got error and realize that in your
train.txtandval.txtmust change GT path fromlabelTrainIdstolabelIds. - After I change it again I got error said that
Some problem with labels. Please check.Again I find that the dataset have bigger class. Therefore in your paper did you only have 20 class?, and could you share a link for cityscape dataset that you download for your paper?
Labels can take value between 0 and number of classes.
Some problem with labels. Please check.
Label Image ID: ./city/gtFine/train/zurich/zurich_000104_000019_gtFine_labelIds.png
Self class 20
Max Val 26
Min_Val 0
Labels can take value between 0 and number of classes.
Some problem with labels. Please check.
Label Image ID: ./city/gtFine/train/zurich/zurich_000098_000019_gtFine_labelIds.png
Self class 20
Max Val 33
Min_Val 1
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (6 by maintainers)
Just got it here how to fix it:
TrainIdsyou need to convert it using cityscape dataset script cam be seen in hereTrainIdsuse this inloadData.pyline 61.unique_values = np.unique(label_img[label_img!=255])@MrLinNing maybe you can try to use step 2. If you also use cityscape just use 20 classes.