sacmehta / ESPNet

ESPNet: Efficient Spatial Pyramid of Dilated Convolutions for Semantic Segmentation
https://sacmehta.github.io/ESPNet/
MIT License
541 stars 112 forks source link

How to evaluate #31

Closed userb2020 closed 5 years ago

userb2020 commented 5 years ago

Hello.

I trained your ESPNet and want to evaluate the model(mIoU). So, I made test/main.py using your train/main.py code. However, I realized that I need test.txt file of cityscapes to run the code. Is there anyway to get test.txt file of cityscapes? Or can you let me know how can I check your model's mIoU?

Thanks.

sacmehta commented 5 years ago

i) Copy your model.py (should be the same file as you used for training) file from train folder to the test folder and the weights too. ii) Assuming you have all your validation (or test) images in ./data folder. Now, make changes to the arguments as required and run the Visualize.py file. iii) This would generate predictions for you depending upon your arguments in the results folder. Rename that folder to result which you can use for evaluation.

P.S.: Output will be 1024x512, so upsample to 2048x1024 using nearest neighbor interpolation