-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Support TOOD: Task-aligned One-stage Object Detection (ICCV 2021 Oral) #6746
Conversation
Codecov Report
@@ Coverage Diff @@
## dev-v2.20.0 #6746 +/- ##
===============================================
+ Coverage 62.04% 62.37% +0.33%
===============================================
Files 322 327 +5
Lines 25717 26122 +405
Branches 4356 4421 +65
===============================================
+ Hits 15955 16293 +338
- Misses 8913 8963 +50
- Partials 849 866 +17
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
… 2021 Oral) (#6746) * [Feature] Support TOOD. * update * use assign result * use assign result * clean assigner * add config * add tood head unit test and fix device bug * test assigner and fix empty gt error * test hook * add anchor-based cfg and readme * update readme * resolve comments * resolve comment * add metafile * fix model index * copyright * resolve comments * resolve comments
… 2021 Oral) (open-mmlab#6746) * [Feature] Support TOOD. * update * use assign result * use assign result * clean assigner * add config * add tood head unit test and fix device bug * test assigner and fix empty gt error * test hook * add anchor-based cfg and readme * update readme * resolve comments * resolve comment * add metafile * fix model index * copyright * resolve comments * resolve comments
TOOD: Task-aligned One-stage Object Detection
https://arxiv.org/abs/2108.07755
Introduction
One-stage object detection is commonly implemented by optimizing two sub-tasks: object classification and localization, using heads with two parallel branches, which might lead to a certain level of spatial misalignment in predictions between the two tasks. In this work, we propose a Task-aligned One-stage Object Detection (TOOD) that explicitly aligns the two tasks in a learning-based manner. First, we design a novel Task-aligned Head (T-Head) which offers a better balance between learning task-interactive and task-specific features, as well as a greater flexibility to learn the alignment via a task-aligned predictor. Second, we propose Task Alignment Learning (TAL) to explicitly pull closer (or even unify) the optimal anchors for the two tasks during training via a designed sample assignment scheme and a task-aligned loss. Extensive experiments are conducted on MS-COCO, where TOOD achieves a 51.1 AP at single-model single-scale testing. This surpasses the recent one-stage detectors by a large margin, such as ATSS (47.7 AP), GFL (48.2 AP), and PAA (49.0 AP), with fewer parameters and FLOPs. Qualitative results also demonstrate the effectiveness of TOOD for better aligning the tasks of object classification and localization.
Checklist
tood_r50_fpn_1x_coco: