End-to-End Object Detection with Adaptive Clustering Transformer

Minghang Zheng, Peng Gao, Renrui Zhang, Kunchang Li, Xiaogang Wang +2 more
11/18/2020
cs.CV
transformer-attention

Official code: gaopengcuhk/SMCA-DETR (169 stars, Python, last commit 2021-10-14).

Abstract

End-to-end Object Detection with Transformer (DETR)proposes to perform object detection with Transformer and achieve comparable performance with two-stage object detection like Faster-RCNN. However, DETR needs huge computational resources for training and inference due to the high-resolution spatial input.

Show full abstract

In this paper, a novel variant of transformer named Adaptive Clustering Transformer(ACT) has been proposed to reduce the computation cost for high-resolution input. ACT cluster the query features adaptively using Locality Sensitive Hashing (LSH) and ap-proximate the query-key interaction using the prototype-key interaction. ACT can reduce the quadratic O(N2) complexity inside self-attention into O(NK) where K is the number of prototypes in each layer. ACT can be a drop-in module replacing the original self-attention module without any training. ACT achieves a good balance between accuracy and computation cost (FLOPs). The code is available as supplementary for the ease of experiment replication and verification. Code is released at \url{https://github.com/gaopengcuhk/SMCA-DETR/}

View on arXivView PDF

Code Implementations(1)

16923Python, CudaAug 4, 20215 years ago

Similar Papers

Cite this paper

@article{zheng2020endtoend,
  title  = {End-to-End Object Detection with Adaptive Clustering Transformer},
  author = {Minghang Zheng and Peng Gao and Renrui Zhang and Kunchang Li and Xiaogang Wang and Hongsheng Li and Hao Dong},
  year   = {2020},
  eprint = {2011.09315},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.09315}
}

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

Discussion