intersectionoverunion
Intersection over union (IoU), also known as the Jaccard index, is a measure of similarity between two sets and is widely used in computer vision to evaluate segmentation and object detection results. It quantifies how well a predicted region matches a ground-truth region.
For binary masks, IoU is defined as the size of the intersection divided by the size of
In practice, IoU is computed per class in semantic segmentation or per instance in instance segmentation, and
Related metrics include Dice coefficient, which is defined as 2|P ∩ G| / (|P| + |G|). IoU and Dice
Limitations of IoU include sensitivity to object size and class imbalance, and reduced informativeness for complex