All models

rtdetr-resnet50

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

Detection and tracking · 1,139 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 (43 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
42.9M
Operations
1,139
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
m8979
Graph hash
4c86c5fb546be95c3e4413e93424225d3734e5d6095ee65d9373bc64c74e0c3b
Skeleton hash
34a4e4475494fcdb5fd9080d1c87f9602f32eea1301e3c6cb80a2aa57874ffcc
Architecture hash
f47f8eab6ad5465ea268aa46c798844c6e134fb871805d14a58f31d772266c7a
Diagram SHA-256
b0f8a68d1a34eedc506579806f36f6304cf97c2beb4e21d3018f9a4a8190eea0
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 a ResNet-50 backbone, the RT-DETR-R50 of the paper, which reports 53.1% AP on COCO val2017 and 108 FPS on a T4 GPU.

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}, 
}