广义焦点损失:学习用于密集目标检测的合格和分布式边界框
Generalized Focal Loss: Learning Qualified and Distributed Bounding Boxes for Dense Object Detection
摘要:
一级检测器基本上将目标检测表述为密集分类和定位。分类通常通过Focal Loss进行优化,并且框位置通常在Dirac delta分布下学习。单阶段检测器的最近趋势是引入单独的预测分支来估计定位的质量,其中预测的质量有助于分类以提高检测性能。本文深入研究了上述三个基本要素的表示:质量估计,分类和定位。在现有的实践中发现了两个问题,包括(1)训练和推理之间的质量估计和分类的不一致使用以及(2)当复杂场景中存在模糊性和不确定性时,用于定位的不灵活的Dirac delta分布。为了解决这些问题,我们为这些元素设计了新的表示。具体来说,我们合并到类预测向量的质量估计,形成一个联合表示的本地化质量和分类,并使用一个向量来表示任意分布的盒子位置。改进的表示消除了不一致的风险,准确地描述了实际数据中的灵活分布,但包含连续的标签,这超出了焦点损失的范围。然后,我们提出了广义焦点损失(GFL),将焦点损失从离散形式推广到连续形式,以实现成功的优化。在COCO测试开发中,GFL使用ResNet-101主干实现了45.0\%的AP,超过了最先进的SAPD(43.5\%)和ATSS(43.6\%),在相同的主干和训练设置下具有更高或相当的推理速度。值得注意的是,我们的最佳模型可以在单个2080 Ti GPU上以10 FPS实现48.2\%的单模型单尺度AP。代码和型号可在https://github.com/implus/GFocal上获得。
英文摘要:
One-stage detector basically formulates object detection as dense classification and localization. The classification is usually optimized by Focal Loss and the box location is commonly learned under Dirac delta distribution. A recent trend for one-stage detectors is to introduce an individual prediction branch to estimate the quality of localization, where the predicted quality facilitates the classification to improve detection performance. This paper delves into the representations of the above three fundamental elements: quality estimation, classification and localization. Two problems are discovered in existing practices, including (1) the inconsistent usage of the quality estimation and classification between training and inference and (2) the inflexible Dirac delta distribution for localization when there is ambiguity and uncertainty in complex scenes. To address the problems, we design new representations for these elements. Specifically, we merge the quality estimation into the class prediction vector to form a joint representation of localization quality and classification, and use a vector to represent arbitrary distribution of box locations. The improved representations eliminate the inconsistency risk and accurately depict the flexible distribution in real data, but contain continuous labels, which is beyond the scope of Focal Loss. We then propose Generalized Focal Loss (GFL) that generalizes Focal Loss from its discrete form to the continuous version for successful optimization. On COCO test-dev, GFL achieves 45.0\% AP using ResNet-101 backbone, surpassing state-of-the-art SAPD (43.5\%) and ATSS (43.6\%) with higher or comparable inference speed, under the same backbone and training settings. Notably, our best model can achieve a single-model single-scale AP of 48.2\%, at 10 FPS on a single 2080Ti GPU. Code and models are available at https://github.com/implus/GFocal.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。