ESPNet: Cityscape Dataset Error

Hello I have tried to run your code but I have several problem:

  1. Which cityscapes dataset that you are download? I have download from this link and download leftImg8bit_trainvaltest.zip (11GB) and it’s GT gtFine_trainvaltest.zip (241MB)
  2. I got error and realize that in your train.txt and val.txt must change GT path from labelTrainIds to labelIds.
  3. 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)

Most upvoted comments

Just got it here how to fix it:

  1. if you dont have TrainIds you need to convert it using cityscape dataset script cam be seen in here
  2. Make sure the class is below 20, by ignoring the pixel value 255 in TrainIds use this in loadData.py line 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.