DistanceIoU
DistanceIoU, commonly abbreviated DIoU, is a bounding box regression loss and evaluation metric used in object detection. It extends the traditional Intersection over Union (IoU) by incorporating the spatial relationship between the predicted box and the ground-truth box, specifically penalizing the distance between their centers in addition to their overlap. This helps improve localization accuracy and training efficiency, especially when boxes have similar IoU but different center positions.
Formally, for a predicted box B and a ground-truth box G, let IoU(B, G) be their intersection
DistanceIoU is often used as a drop-in replacement for IoU-based regression losses in object detectors to achieve