LW-DETR: A Transformer Replacement to YOLO for Real-Time Detection

Qiang Chen, Xiangbo Su, Xinyu Zhang, Jian Wang, Jiahui Chen +10 more
6/5/2024
cs.CV

Official code: Atten4Vis/LW-DETR (514 stars, Apache-2.0, last commit 2025-02-18).

Abstract

In this paper, we present a light-weight detection transformer, LW-DETR, which outperforms YOLOs for real-time object detection. The architecture is a simple stack of a ViT encoder, a projector, and a shallow DETR decoder. Our approach leverages recent advanced techniques, such as training-effective techniques, e.g., improved loss and pretraining, and interleaved window and global attentions for reducing the ViT encoder complexity. We improve the ViT encoder by aggregating multi-level feature maps, and the intermediate and final feature maps in the ViT encoder, forming richer feature maps, and introduce window-major feature map organization for improving the efficiency of interleaved attention computation. Experimental results demonstrate that the proposed approach is superior over existing real-time detectors, e.g., YOLO and its variants, on COCO and other benchmark datasets. Code and models are available at (https://github.com/Atten4Vis/LW-DETR).

View on arXivView PDF

Code Implementations(1)

Atten4Vis/LW-DETROfficial100%
Apache-2.0

This repository is an official implementation of the paper "LW-DETR: A Transformer Replacement to YOLO for Real-Time Detection".

51447C++, CudaMay 28, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{chen2024lwdetr,
  title  = {LW-DETR: A Transformer Replacement to YOLO for Real-Time Detection},
  author = {Qiang Chen and Xiangbo Su and Xinyu Zhang and Jian Wang and Jiahui Chen and Yunpeng Shen and Chuchu Han and Ziliang Chen and Weixiang Xu and Fanrong Li and Shan Zhang and Kun Yao and Errui Ding and Gang Zhang and Jingdong Wang},
  year   = {2024},
  eprint = {2406.03459},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.03459v1}
}

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

Discussion