hellochick / PSPNet-tensorflow

TensorFlow-based implementation of "Pyramid Scene Parsing Network".
326 stars 123 forks source link

evaluation mIoU: 0.00404 on cityscapes val dataset #25

Open amiltonwong opened 6 years ago

amiltonwong commented 6 years ago

Hi, @hellochick ,

I had run the evaluation command for cityscapes val dataset using your provided trained model. However, the mIoU is too low (0.00404) which seems something wrong in evaluate.py. As the inference result using the same model gives the same output as your example. Would you give help to check your evaluate.py again?

THX!

rydeldcosta commented 6 years ago

Hi @amiltonwong, I faced this issue initially. The output given by the network is the trainIds (0 - 18). You need to convert these to Label Ids (0 - 33) This mapping is given in the labels.py script provided in cityscapes scripts.

TingZhang08 commented 6 years ago

Hi @amiltonwong , have you resolved your problem? I also encountered a similar problem on ADE20K val dataset. The mIoU is also too low.

amiltonwong commented 6 years ago

Not yet, a conversion script for label id is required to perform correct evaluation. I'll work on it then.

hellochick commented 6 years ago

Hey guys, you should donwload the dataset from here instead of this one. Maybe that can solve your questions.

TingZhang08 commented 6 years ago

@hellochick . Thank you very much! I have solved my problem by downloading a new version dataset ade20k from the Internet address you provided. Thank again!

zl535320706 commented 5 years ago

Hi @amiltonwong, I faced this issue initially. The output given by the network is the trainIds (0 - 18). You need to convert these to Label Ids (0 - 33) This mapping is given in the labels.py script provided in cityscapes scripts.

@rydeldcosta I have the same problem, and the above approaches are used for ADE20K. But, how to evaluate cityscape? I follow you advice and run the code: "./cityscapesscripts/helpers/labels.py" but only got: `Example usages: ID of label 'car': 26 Category of label with ID '26': vehicle Name of label with trainID '0': road

Process finished with exit code 0` I confused that, how to use "./cityscapesscripts/helpers/labels.py", or change "evaluate.py" in this repo somewhere ? @hellochick

THX

LbinB commented 5 years ago

Did you get a solution? I met the problem too,THX @amiltonwong @hellochick @rydeldcosta