PSPNet-tensorflow icon indicating copy to clipboard operation
PSPNet-tensorflow copied to clipboard

evaluation mIoU: 0.00404 on cityscapes val dataset

Open amiltonwong opened this issue 6 years ago • 7 comments

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!

amiltonwong avatar Mar 05 '18 11:03 amiltonwong

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 avatar Mar 06 '18 07:03 rydeldcosta

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

TingZhang08 avatar Mar 13 '18 01:03 TingZhang08

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

amiltonwong avatar Mar 13 '18 02:03 amiltonwong

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

hellochick avatar Mar 13 '18 02:03 hellochick

@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!

TingZhang08 avatar Mar 27 '18 06:03 TingZhang08

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

zl535320706 avatar Oct 12 '18 08:10 zl535320706

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

LbinB avatar Jun 01 '19 06:06 LbinB