chainer / chainercv

ChainerCV: a Library for Deep Learning in Computer Vision
MIT License
1.48k stars 306 forks source link

eval_semantic_segmentation and calc_semantic_segmentation_confusion for when we have ignore label #949

Open seyeeet opened 3 years ago

seyeeet commented 3 years ago

it would be nice if we can add an option to eval_semantic_segmentation and calc_semantic_segmentation_confusion for the cases that we have ignore labels. for example in voc pascal segmentation, we have 255 for ignore areas, we have to manually set them 0 which will mess with the background. it would be nice if we can have an option that we define the ignore labels when we use the aforementioned functions.