Submitted by florinandrei t3_11kbuzq in MachineLearning
lynnharry t1_jb8n8p0 wrote
Reply to comment by florinandrei in [D] The MMSegmentation library from OpenMMLab appears to return the wrong results when computing basic image segmentation metrics such as the Jaccard index (IoU - intersection-over-union). It appears to compute recall (sensitivity) instead of IoU, which artificially inflates the performance metrics. by florinandrei
Pixels with ignore_index
does not mean the model's output should also be ignore_index
. It means the groundtruth label is not determined on those pixels and whatever your model's output is, its correctness is undetermined.
For those undetermined pixels, we simply ignore those outputs completely.
ignore_index
is not used to ignore a specific category during the metric calculation, which is what you're proposing. ignore_index
is simply notifying intersect_and_union
some areas of the image have undetermined labels and should be ignored, and those areas are marked by the value of ignore_index
.
Viewing a single comment thread. View all comments