VarifocalNet: An IoU-aware Dense Object Detector
About
Accurately ranking the vast number of candidate detections is crucial for dense object detectors to achieve high performance. Prior work uses the classification score or a combination of classification and predicted localization scores to rank candidates. However, neither option results in a reliable ranking, thus degrading detection performance. In this paper, we propose to learn an Iou-aware Classification Score (IACS) as a joint representation of object presence confidence and localization accuracy. We show that dense object detectors can achieve a more accurate ranking of candidate detections based on the IACS. We design a new loss function, named Varifocal Loss, to train a dense object detector to predict the IACS, and propose a new star-shaped bounding box feature representation for IACS prediction and bounding box refinement. Combining these two new components and a bounding box refinement branch, we build an IoU-aware dense object detector based on the FCOS+ATSS architecture, that we call VarifocalNet or VFNet for short. Extensive experiments on MS COCO show that our VFNet consistently surpasses the strong baseline by $\sim$2.0 AP with different backbones. Our best model VFNet-X-1200 with Res2Net-101-DCN achieves a single-model single-scale AP of 55.1 on COCO test-dev, which is state-of-the-art among various object detectors.Code is available at https://github.com/hyz-xmaster/VarifocalNet .
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Object Detection | COCO 2017 (val) | AP40.2 | 2454 | |
| Object Detection | COCO (test-dev) | mAP49.9 | 1195 | |
| Object Detection | MS COCO (test-dev) | mAP@.573 | 677 | |
| Object Detection | COCO v2017 (test-dev) | mAP48.5 | 499 | |
| Object Detection | MS-COCO 2017 (val) | -- | 237 | |
| Object Detection | SAR-Aircraft v1.0 (test) | mAP (AP'07)66.17 | 27 | |
| Object Detection | SARDet-100K (test) | MAP53.01 | 27 | |
| Object Detection | MSAR AP'07 protocol (test) | mAP65.31 | 24 | |
| Object Detection | MSAR AP'12 protocol (test) | mAP66.56 | 24 | |
| Breast Lesion Detection | BLUVD-186 (test) | AP28 | 12 |