Applied Sciences (Dec 2022)

NGIoU Loss: Generalized Intersection over Union Loss Based on a New Bounding Box Regression

  • Chenghao Tong,
  • Xinhao Yang,
  • Qing Huang,
  • Feiyang Qian

DOI
https://doi.org/10.3390/app122412785
Journal volume & issue
Vol. 12, no. 24
p. 12785

Abstract

Read online

Loss functions, such as the IoU Loss function and the GIoU (Generalized Intersection over Union) Loss function have been put forward to replace regression loss functions commonly used in regression loss calculation. GIoU Loss alleviates the vanishing gradient in the case of the non-overlapping, but it will completely degenerate into the IoU Loss function when bounding boxes overlap totally, which fails to achieve the optimization effect. To solve this problem, some improvements are proposed in this paper on the basis of the GIoU Loss function, taking into account the overlap rate of complete overlap of bounding boxes. In PASCAL VOC data, the experimental results demonstrate that the AP of NGIoU Loss function in the YOLOv4 model is 47.68%, 1.15% higher than that of the GIoU Loss function, and the highest map value is 86.79% in the YOLOv5 model.

Keywords