NMS Strikes Back

Jeffrey Ouyang-Zhang, Jang Hyun Cho, Xingyi Zhou, Philipp Krähenbühl
12/12/2022
cs.CV
transformer-attention

Official code: jozhang97/DETA (270 stars, Python, Apache-2.0, last commit 2023-09-16).

Abstract

Detection Transformer (DETR) directly transforms queries to unique objects by using one-to-one bipartite matching during training and enables end-to-end object detection. Recently, these models have surpassed traditional detectors on COCO with undeniable elegance.

Show full abstract

However, they differ from traditional detectors in multiple designs, including model architecture and training schedules, and thus the effectiveness of one-to-one matching is not fully understood. In this work, we conduct a strict comparison between the one-to-one Hungarian matching in DETRs and the one-to-many label assignments in traditional detectors with non-maximum supervision (NMS). Surprisingly, we observe one-to-many assignments with NMS consistently outperform standard one-to-one matching under the same setting, with a significant gain of up to 2.5 mAP. Our detector that trains Deformable-DETR with traditional IoU-based label assignment achieved 50.2 COCO mAP within 12 epochs (1x schedule) with ResNet50 backbone, outperforming all existing traditional or transformer-based detectors in this setting. On multiple datasets, schedules, and architectures, we consistently show bipartite matching is unnecessary for performant detection transformers. Furthermore, we attribute the success of detection transformers to their expressive transformer architecture. Code is available at https://github.com/jozhang97/DETA.

View on arXivView PDF

Code Implementations(1)

jozhang97/DETAOfficial100%
Apache-2.0

Detection Transformers with Assignment

27022Python, CudaDec 12, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{ouyangzhang2022strikes,
  title  = {NMS Strikes Back},
  author = {Jeffrey Ouyang-Zhang and Jang Hyun Cho and Xingyi Zhou and Philipp Krähenbühl},
  year   = {2022},
  eprint = {2212.06137},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.06137}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.06137.svg)](https://codeofpaper.com/paper/2212.06137)

Discussion