DETR Doesn't Need Multi-Scale or Locality Design

Yutong Lin, Yuhui Yuan, Zheng Zhang, Chen Li, Nanning Zheng +1 more
8/3/2023
cs.CV

Official code: impiga/Plain-DETR (231 stars, MIT, last commit 2023-11-14).

Abstract

This paper presents an improved DETR detector that maintains a "plain" nature: using a single-scale feature map and global cross-attention calculations without specific locality constraints, in contrast to previous leading DETR-based detectors that reintroduce architectural inductive biases of multi-scale and locality into the decoder. We show that two simple technologies are surprisingly effective within a plain design to compensate for the lack of multi-scale feature maps and locality constraints. The first is a box-to-pixel relative position bias (BoxRPB) term added to the cross-attention formulation, which well guides each query to attend to the corresponding object region while also providing encoding flexibility. The second is masked image modeling (MIM)-based backbone pre-training which helps learn representation with fine-grained localization ability and proves crucial for remedying dependencies on the multi-scale feature maps. By incorporating these technologies and recent advancements in training and problem formation, the improved "plain" DETR showed exceptional improvements over the original DETR detector. By leveraging the Object365 dataset for pre-training, it achieved 63.9 mAP accuracy using a Swin-L backbone, which is highly competitive with state-of-the-art detectors which all heavily rely on multi-scale feature maps and region-based feature extraction. Code is available at https://github.com/impiga/Plain-DETR .

View on arXivView PDF

Code Implementations(1)

impiga/Plain-DETROfficial100%
MIT

[ICCV2023] DETR Doesn’t Need Multi-Scale or Locality Design

23113Shell, PythonAug 3, 20232 years agoMIT

Similar Papers

Cite this paper

@article{lin2023detr,
  title  = {DETR Doesn't Need Multi-Scale or Locality Design},
  author = {Yutong Lin and Yuhui Yuan and Zheng Zhang and Chen Li and Nanning Zheng and Han Hu},
  year   = {2023},
  eprint = {2308.01904},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.01904v1}
}

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/2308.01904.svg)](https://codeofpaper.com/paper/2308.01904)

Discussion