Papers › DETRs Beat YOLOs on Real-time Object Detection

DETRs Beat YOLOs on Real-time Object Detection

17 Apr 2023CVPR 2024 1arXiv:2304.08069archive 2025-07-28

Yian Zhao, Wenyu Lv, Shangliang Xu, Jinman Wei, Guanzhong Wang, Qingqing Dang, Yi Liu, Jie Chen

The YOLO series has become the most popular framework for real-time object detection due to its reasonable trade-off between speed and accuracy. However, we observe that the speed and accuracy of YOLOs are negatively affected by the NMS. Recently, end-to-end Transformer-based detectors (DETRs) have provided an alternative to eliminating NMS. Nevertheless, the high computational cost limits their practicality and hinders them from fully exploiting the advantage of excluding NMS. In this paper, we propose the Real-Time DEtection TRansformer (RT-DETR), the first real-time end-to-end object detector to our best knowledge that addresses the above dilemma. We build RT-DETR in two steps, drawing on the advanced DETR: first we focus on maintaining accuracy while improving speed, followed by maintaining speed while improving accuracy. Specifically, we design an efficient hybrid encoder to expeditiously process multi-scale features by decoupling intra-scale interaction and cross-scale fusion to improve speed. Then, we propose the uncertainty-minimal query selection to provide high-quality initial queries to the decoder, thereby improving accuracy. In addition, RT-DETR supports flexible speed tuning by adjusting the number of decoder layers to adapt to various scenarios without retraining. Our RT-DETR-R50 / R101 achieves 53.1% / 54.3% AP on COCO and 108 / 74 FPS on T4 GPU, outperforming previously advanced YOLOs in both speed and accuracy. We also develop scaled RT-DETRs that outperform the lighter YOLO detectors (S and M models). Furthermore, RT-DETR-R50 outperforms DINO-R50 by 2.2% AP in accuracy and about 21 times in FPS. After pre-training with Objects365, RT-DETR-R50 / R101 achieves 55.3% / 56.2% AP. The project page: https://zhao-yian.github.io/RTDETR.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2304.08069")

Code

Syntology Ran 2 of 4 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 2 ran with no contract checked.

By repository: official repository: 4 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

lyuwenyu/RT-DETR officialmentioned in papermentioned on GitHubpaddleApache-2.0 report
PaddlePaddle/PaddleDetection mentioned in paperpaddle report
ultralytics/ultralytics mentioned in paperpytorch report
open-edge-platform/geti mentioned on GitHubpytorchApache-2.0 report
MS-P3/code7 mindspore report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

4 samples harvested; 2 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

2ran
2unverified

Licence: 0 of the 4 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from lyuwenyu/RT-DETR. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

dump_value lyuwenyu/RT-DETR/rtdetr_paddle/ppdet/core/workspace.py official repository ran Apache-2.0 (permissive) · 891281774f8942bd · report
load_config lyuwenyu/RT-DETR/rtdetr_paddle/ppdet/core/workspace.py official repository ran Apache-2.0 (permissive) · 7b71ca54a440c129 · report
dict_merge lyuwenyu/RT-DETR/rtdetr_paddle/ppdet/core/workspace.py official repository unverified Apache-2.0 (permissive) · 553169f24c2e1789 · report
mod lyuwenyu/RT-DETR/rtdetrv2_pytorch/src/nn/postprocessor/detr_postprocessor.py official repository unverified Apache-2.0 (permissive) · ec4284e2142c46f9 · report

Tasks

2D Object DetectionDecoderObjectObject DetectionReal-Time Object Detectionobject-detection

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Real-Time Object Detection COCO (Common Objects in Context) RT-DETR-H(640) FPS (V100, b=1) 40 (T4) #9 of 82 Archive leaderboard report
Real-Time Object Detection COCO (Common Objects in Context) RT-DETR-H(640) box AP 56.3 #9 of 82 Archive leaderboard report
Real-Time Object Detection COCO (Common Objects in Context) RT-DETR-X FPS (V100, b=1) 74 (T4) #18 of 82 Archive leaderboard report
Real-Time Object Detection COCO (Common Objects in Context) RT-DETR-X box AP 54.8 #18 of 82 Archive leaderboard report
Real-Time Object Detection COCO (Common Objects in Context) RT-DETR-R101 FPS (V100, b=1) 74 (T4) #24 of 82 Archive leaderboard report
Real-Time Object Detection COCO (Common Objects in Context) RT-DETR-R101 box AP 54.3 #24 of 82 Archive leaderboard report
Real-Time Object Detection COCO (Common Objects in Context) RT-DETR-L FPS (V100, b=1) 114 (T4) #33 of 82 Archive leaderboard report
Real-Time Object Detection COCO (Common Objects in Context) RT-DETR-L box AP 53.0 #33 of 82 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

1x1 ConvolutionAbsolute Position EncodingsAdamAttentionBPEConvolutionDense ConnectionsDetrDropoutFPNFeedforward NetworkLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSPEEDSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections