All models

rtdetr-l

Real-time end-to-end detection transformer with a hybrid encoder and no NMS, built with Ultralytics.

Detection and tracking · 1,187 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (51 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
RT-DETR
Parameters
33M
Operations
1,187
Framework
PyTorch
Recurrent
No
Published
CVPR 2024
Cited by
343 (as of 19 October 2026)
Authors
Yian Zhao, Wenyu Lv, Shangliang Xu and others
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m8977
Graph hash
301550d137be1bdb0852970d7e7600b04860c816c29756b6000caa37b0c9e4ca
Skeleton hash
60207eefb44773d3c014acde7213df9b4aa87ac74632b425a26d494758c7f74e
Architecture hash
b76344975b60ebaf0e687b4fa89f089e67a9b63a0208c0d2dde3709289e99583
Diagram SHA-256
f3805a57711fe1a527db4790e63d25b98d2a813ac457bccb93380f8ab7126630
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

This configuration uses the HGNetv2 backbone at the L size; the authors' repository lists RT-DETR-HGNetv2-L at 53.0 AP on COCO with 32M parameters and 114 FPS.

About this model's family

RT-DETR, the Real-Time DEtection TRansformer, is an end-to-end object detector that its paper calls the first real-time end-to-end object detector to the authors' knowledge. Unlike YOLO detectors, which need non-maximum suppression (NMS), it uses bipartite matching to predict a one-to-one object set, leaving a score threshold as the only post-processing.

The network has three parts: a backbone, an efficient hybrid encoder, and a Transformer decoder with auxiliary heads. The encoder splits its work: self-attention runs only within the highest-level feature map (AIFI), while a convolutional path fuses across scales (CCFF). Between encoder and decoder, uncertainty-minimal query selection picks the top 300 encoder features as object queries, scored by the gap between their predicted localization and classification distributions. Because the decoder is a stack of layers, a trained model can trade accuracy for speed by dropping trailing decoder layers, with no retraining.

On COCO the paper reports 53.1% AP at 108 FPS on a T4 GPU for RT-DETR-R50 and 54.3% AP at 74 FPS for RT-DETR-R101, ahead of the YOLO detectors it compares against. The paper names one limitation: like other DETRs, its accuracy on small objects still trails the strongest real-time detectors. The authors' repository also lists RT-DETR-HGNetv2-L and RT-DETR-HGNetv2-X, with an HGNetv2 backbone, at 53.0 and 54.8 AP on COCO. RT-DETR also ships in the Ultralytics package, which built the models shown here.

Key idea. RT-DETR extends DETR to real-time detection through an efficient hybrid encoder and uncertainty-minimal query selection, and the paper reports it outperforming YOLO detectors in speed and accuracy.

  • rt-detr
  • rtdetr
  • real-time detection transformer
  • detection transformer
  • real-time object detection
  • object detection
  • end-to-end detector
  • nms-free
  • ultralytics
  • hgnetv2

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{zhao2024detrsbeatyolosrealtime,
      title={DETRs Beat YOLOs on Real-time Object Detection}, 
      author={Yian Zhao and Wenyu Lv and Shangliang Xu and Jinman Wei and Guanzhong Wang and Qingqing Dang and Yi Liu and Jie Chen},
      year={2024},
      eprint={2304.08069},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2304.08069}, 
}