Accelerating DETR Convergence via Semantic-Aligned Matching

Gongjie Zhang, Zhipeng Luo, Yingchen Yu, Kaiwen Cui, Shijian Lu
3/14/2022
cs.CV

Official code: ZhangGongjie/SAM-DETR (301 stars, Python, MIT, PyTorch, last commit 2022-08-24).

Abstract

The recently developed DEtection TRansformer (DETR) establishes a new object detection paradigm by eliminating a series of hand-crafted components. However, DETR suffers from extremely slow convergence, which increases the training cost significantly.

Show full abstract

We observe that the slow convergence is largely attributed to the complication in matching object queries with target features in different feature embedding spaces. This paper presents SAM-DETR, a Semantic-Aligned-Matching DETR that greatly accelerates DETR's convergence without sacrificing its accuracy. SAM-DETR addresses the convergence issue from two perspectives. First, it projects object queries into the same embedding space as encoded image features, where the matching can be accomplished efficiently with aligned semantics. Second, it explicitly searches salient points with the most discriminative features for semantic-aligned matching, which further speeds up the convergence and boosts detection accuracy as well. Being like a plug and play, SAM-DETR complements existing convergence solutions well yet only introduces slight computational overhead. Extensive experiments show that the proposed SAM-DETR achieves superior convergence as well as competitive detection accuracy. The implementation codes are available at https://github.com/ZhangGongjie/SAM-DETR.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

[CVPR'2022] SAM-DETR & SAM-DETR++: Official PyTorch Implementation

30146Python, CudaMar 5, 20224 years agoMIT
computer-visioncvprcvpr2022deep-learningdetection+7 more

Similar Papers

Cite this paper

@article{zhang2022accelerating,
  title  = {Accelerating DETR Convergence via Semantic-Aligned Matching},
  author = {Gongjie Zhang and Zhipeng Luo and Yingchen Yu and Kaiwen Cui and Shijian Lu},
  year   = {2022},
  eprint = {2203.06883},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.06883}
}

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

Discussion