SFSegNets icon indicating copy to clipboard operation
SFSegNets copied to clipboard

nan for mIOU

Open niloofarAzari opened this issue 3 years ago • 1 comments

Executing the eval.py file using pre-trained model "res18_sfnet.pth", i get nan value for mIOU and also for the iou of all the classes. Although when looking at the output segmented images they seem really good. What may the reason be?

niloofarAzari avatar Feb 11 '22 11:02 niloofarAzari

Could you show the detailed comand?

lxtGH avatar Mar 31 '22 16:03 lxtGH

I encountered the same issue. It seems like the loaded GT labels for the test set are all 255 (invalid). Running the eval script with "sliding" inference mode does not yield any results for me, therefore I used the following arguments: "--arch", "network.sfnet_resnet.DeepR18_SF_deeply", "--snapshot", "[...]/SFSegNets/pretrained_models/sfnet_r18_map.pth", "--cv_split", "0", "--split","test", "--dataset_dir","[...]/Cityscapes", "--inference_mode", "pooling"

TiesHendrickx avatar Aug 25 '22 13:08 TiesHendrickx

I did not find this error during SFNet-lite pre-paration in these months. So I close this issue.

lxtGH avatar Sep 24 '22 09:09 lxtGH