TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/DETRs Beat YOLOs on Real-time Object Detection

DETRs Beat YOLOs on Real-time Object Detection

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

2023-04-17CVPR 2024 1Real-Time Object Detection2D Object Detectionobject-detectionObject Detection
PaperPDFCodeCodeCodeCode(official)CodeCodeCodeCodeCode

Abstract

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.

Results

TaskDatasetMetricValueModel
Object DetectionCOCO (Common Objects in Context)box AP56.3RT-DETR-H(640)
Object DetectionCOCO (Common Objects in Context)box AP54.8RT-DETR-X
Object DetectionCOCO (Common Objects in Context)box AP54.3RT-DETR-R101
Object DetectionCOCO (Common Objects in Context)box AP53RT-DETR-L
3DCOCO (Common Objects in Context)box AP56.3RT-DETR-H(640)
3DCOCO (Common Objects in Context)box AP54.8RT-DETR-X
3DCOCO (Common Objects in Context)box AP54.3RT-DETR-R101
3DCOCO (Common Objects in Context)box AP53RT-DETR-L
2D ClassificationCOCO (Common Objects in Context)box AP56.3RT-DETR-H(640)
2D ClassificationCOCO (Common Objects in Context)box AP54.8RT-DETR-X
2D ClassificationCOCO (Common Objects in Context)box AP54.3RT-DETR-R101
2D ClassificationCOCO (Common Objects in Context)box AP53RT-DETR-L
2D Object DetectionCOCO (Common Objects in Context)box AP56.3RT-DETR-H(640)
2D Object DetectionCOCO (Common Objects in Context)box AP54.8RT-DETR-X
2D Object DetectionCOCO (Common Objects in Context)box AP54.3RT-DETR-R101
2D Object DetectionCOCO (Common Objects in Context)box AP53RT-DETR-L
16kCOCO (Common Objects in Context)box AP56.3RT-DETR-H(640)
16kCOCO (Common Objects in Context)box AP54.8RT-DETR-X
16kCOCO (Common Objects in Context)box AP54.3RT-DETR-R101
16kCOCO (Common Objects in Context)box AP53RT-DETR-L

Related Papers

A Real-Time System for Egocentric Hand-Object Interaction Detection in Industrial Domains2025-07-17RS-TinyNet: Stage-wise Feature Fusion Network for Detecting Tiny Objects in Remote Sensing Images2025-07-17Decoupled PROB: Decoupled Query Initialization Tasks and Objectness-Class Learning for Open World Object Detection2025-07-17Dual LiDAR-Based Traffic Movement Count Estimation at a Signalized Intersection: Deployment, Data Collection, and Preliminary Analysis2025-07-17Vision-based Perception for Autonomous Vehicles in Obstacle Avoidance Scenarios2025-07-16Tomato Multi-Angle Multi-Pose Dataset for Fine-Grained Phenotyping2025-07-15ECORE: Energy-Conscious Optimized Routing for Deep Learning Models at the Edge2025-07-08Beyond One Shot, Beyond One Perspective: Cross-View and Long-Horizon Distillation for Better LiDAR Representations2025-07-07