All models

yolov8-rtdetr

Ultralytics detector pairing a YOLOv8 backbone and neck with RT-DETR's transformer decoder head.

Detection and tracking · 866 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 (41 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

Parameters
9.6M
Operations
866
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
AGPL-3.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
m11472
Graph hash
c234c2d4521fbde97b60bc7aa1a514b6ee0a38c1b95f49edcc5b498b5a925b19
Skeleton hash
ec4a265ffb15c9e914ceca1e82344d20af309017b2a7ba68b6fb12221e342de7
Architecture hash
73b9a4b95e269c9547f7c1a0240d63c49c565e4b7c1b5692e0b4f0906f6e6e31
Diagram SHA-256
cb95edeb7e475b6f3db3d052be9bd7e1cb02d7c43ec8bb90e4ff06998572c9d8
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

How this diagram was made

ultralytics.nn.tasks.RTDETRDetectionModel('yolov8-rtdetr.yaml', verbose=False)

What it is

This model is an Ultralytics detector that pairs the library's YOLOv8 backbone and neck with the decoder of RT-DETR, the Real-Time DEtection TRansformer. RT-DETR's paper argues that YOLO detectors lose speed and stability to non-maximum suppression, while transformer detectors (DETRs) remove it but have been too costly to run in real time.

In the paper, RT-DETR consists of a backbone, an efficient hybrid encoder, and a transformer decoder with auxiliary prediction heads, and this configuration keeps only the decoder head from that design. Its query selection takes the top 300 encoder features as content queries, with their predicted boxes as initial position queries, and the decoder then refines those queries into categories and boxes. Because the decoder works layer by layer, the paper shows that speed can be tuned by adjusting the number of decoder layers without retraining.

The paper reports 53.1% and 54.3% AP on COCO for RT-DETR-R50 and RT-DETR-R101, at 108 and 74 FPS on a T4 GPU. It also notes that lighter RT-DETRs can be designed by applying smaller or scalable backbones with a scaled encoder and decoder, which is the route this configuration takes with a YOLOv8 backbone. The paper lists one limitation it shares with other DETRs: accuracy on small objects still trails the strong real-time detectors. The same paper used YOLOv8 as its test case for measuring how NMS thresholds change accuracy and post-processing time.

Key idea. RT-DETR's authors built a real-time end-to-end detector with an efficient hybrid encoder and uncertainty-minimal query selection that outperformed YOLO detectors on COCO without NMS.

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

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