All models

rtdetr-x

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

Detection and tracking · 1,345 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 (57 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
67.5M
Operations
1,345
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
m8980
Graph hash
e57920362e5b94e51526b0c6f3a4123e461750e4f3e940671151da20bba457bd
Skeleton hash
08e89ce789b1d81e6a33eabf0e7d9c2d524e82c127c4d2bef76d6e8a3c9c026c
Architecture hash
b10a5c20cfa6b615003806bfe6e361fdc02b12093b374f35e498880feeb6a16f
Diagram SHA-256
9c4e0d84e4c47aea8ba0a1970743700b8cb0a14f9b9d2ffe9757feea6079edee
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 X size; the authors' repository lists RT-DETR-HGNetv2-X at 54.8 AP on COCO with 67M parameters and 74 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}, 
}