pochih / FCN-pytorch

🚘 Easiest Fully Convolutional Networks
404 stars 143 forks source link

parse_label assert error #3

Closed andrecavalcante closed 6 years ago

andrecavalcante commented 6 years ago

Hi, why does CamVid_utils generate the following error on some files such as 0016E5_08460_L.png

Traceback (most recent call last): File "python/CamVid_utils.py", line 141, in parse_label() File "python/CamVid_utils.py", line 122, in parse_label assert color2label[tuple(color)] == test_ans[idx] AssertionError

pochih commented 6 years ago

Because I extract the first image (according to the ordering manner of the OS) to test the correctness of the parsing code. The error may be caused by your OS orders the files in a different way from mine. I forget I used ubuntu or CentOS at the time, you can just delete the testing parts of the code. Thanks.

andrecavalcante commented 6 years ago

Thank you!