Generalized Intersection over Union: A Metric and A Loss for Bounding Box Regression
Hamid Rezatofighi, Nathan Tsoi, JunYoung Gwak, Amir Sadeghian, Ian Reid, Silvio Savarese
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/gau-nernst/CenterNetpytorch★ 71
- github.com/OFRIN/Tensorflow_GIoUtf★ 0
- github.com/RuiminChen/GIouloss_CIouloss_caffenone★ 0
- github.com/JaryHuang/awesome_SSD_FPN_GIoUpytorch★ 0
- github.com/LinRiver/YOLOv3-on-LISA-Traffic-Sign-Detection-with-darknetnone★ 0
- github.com/sremes/a2d2tf★ 0
- github.com/RuiminChen/GIou_loss_caffenone★ 0
- github.com/kalubin-awym/GIoU-loss-for-RetinaNetnone★ 0
- github.com/AnselmC/bamotnone★ 0
Abstract
Intersection over Union (IoU) is the most popular evaluation metric used in the object detection benchmarks. However, there is a gap between optimizing the commonly used distance losses for regressing the parameters of a bounding box and maximizing this metric value. The optimal objective for a metric is the metric itself. In the case of axis-aligned 2D bounding boxes, it can be shown that IoU can be directly used as a regression loss. However, IoU has a plateau making it infeasible to optimize in the case of non-overlapping bounding boxes. In this paper, we address the weaknesses of IoU by introducing a generalized version as both a new loss and a new metric. By incorporating this generalized IoU (GIoU) as a loss into the state-of-the art object detection frameworks, we show a consistent improvement on their performance using both the standard, IoU based, and new, GIoU based, performance measures on popular object detection benchmarks such as PASCAL VOC and MS COCO.