Open SuhZhang opened 2 years ago
Hi SuhZhang, I'm not an admin of this page but since I was facing the same problem I can respond to you. You are providing the model with the wrong palette of colors since you should have as much segmentation colors as classes of prediction. To solve this issue, just get ride of the argument: get_palette(args.palette) in the function show_result_pyplot(). Random palette with the right size will be generated
@francoislegac thx for your reply. It seems I missed this issue...
I am trying to run
python demo/image_demo.py demo/food.png checkpoints/CCNet_ReLeM/ccnet_r50-d8_512x1024_80k.py checkpoints/CCNet_ReLeM/iter_80000.pth --device cuda:0 --palette cityscapes
where the model and config file are sent from the author. But I met the error below:It seems that the length of CLASSES is not right. How can I fix the problem?
My environment: