pytorch-semseg
pytorch-semseg copied to clipboard
test.py error
I have trouble when test.py command I want solve that this problem
This is test.py command
python test.py --model_path ./runs/fcn16s_cityscapes_best_model.pkl --img_path ~/dataset/cityscape/leftImg8bit/test/berlin/berlin_000197_000019_leftImg8bit.png --out_path ./out/
error
File "test.py", line 157, in
Did you figure out the answer to your question? I ran into a similar error.
21 means the n_classes parameter in test.py, you can change it from 21 to 19 manually to fix the error.