What RT-DETR is
RT-DETR, short for Real-Time DEtection TRansformer, is an object detection model that uses a transformer to predict each object in an image once, so it needs no non-maximum suppression (NMS) step to remove duplicate boxes. It was introduced by researchers at Baidu and Peking University in the paper “DETRs Beat YOLOs on Real-time Object Detection”, first posted to arXiv in April 2023 and accepted to CVPR 2024.
It builds on DETR, the detection transformer introduced by Carion and colleagues in 2020, which treated detection as predicting a set of objects directly and dropped hand-designed steps such as NMS and anchor boxes. DETR was accurate but too slow for real-time video. RT-DETR’s contribution was to make that design fast enough to compete with YOLO detectors on speed as well as accuracy.
The authors’ code is open source under the Apache 2.0 licence, in PaddlePaddle and PyTorch versions. RT-DETR is also available in the Ultralytics package and the Hugging Face transformers library, and NVIDIA’s TAO toolkit can train it and export it for TensorRT and DeepStream.
How RT-DETR works
RT-DETR has four main parts, and the paper’s changes target the encoder and the way the decoder starts.
-
//
Backbone. A convolutional network, such as ResNet or HGNetv2, extracts features from the image at several scales.
-
//
Efficient hybrid encoder. Instead of running attention across every scale at once, it handles interaction within each scale and fusion across scales separately, which is where much of the speed comes from.
-
//
Uncertainty-minimal query selection. The model picks the most promising image features as starting points, or queries, for the decoder, which improves accuracy.
-
//
Transformer decoder. Each query becomes at most one object. In training, each prediction is matched one-to-one with a labelled object, so the model learns not to produce duplicates.
RT-DETR vs YOLO: why NMS matters
A conventional YOLO detector predicts many overlapping candidate boxes for each object. NMS then keeps the highest-scoring box and discards neighbours that overlap it beyond a threshold. The RT-DETR authors found that this step hurts both speed and accuracy: its run time depends on the number of boxes and on two thresholds, and those thresholds have to be tuned for each scene, which is hardest when objects overlap.
Without NMS, RT-DETR’s output is final as it leaves the model. The decoder depth can also be reduced at deployment without retraining. Ultralytics reports that cutting RT-DETR-L from six decoder layers to four on a T4 with TensorRT took latency from 8.0 to 7.4 ms, with mAP falling only from 52.7 to 52.5.
The idea has since spread. Ultralytics’ YOLO26, released in January 2026, offers an optional NMS-free head, while its default head still uses NMS for a little more accuracy. The choice is now less about NMS and more about which model is more accurate on your data and hardware.
RT-DETR versions and published results
The versions share the same basic design. The figures are as the authors publish them for the COCO dataset, measured on an NVIDIA T4 data-centre GPU with TensorRT at FP16 (the RT-DETRv4 page does not state the precision).
| Model | Version | COCO AP | Parameters | T4 speed |
|---|---|---|---|---|
| RT-DETR-R18 | v1, 2023 | 46.5 | 20M | 217 FPS |
| RT-DETR-R50 | v1, 2023 | 53.1 | 42M | 108 FPS |
| RT-DETR-R101 | v1, 2023 | 54.3 | 76M | 74 FPS |
| RT-DETRv2-S | v2, 2024 | 48.1 | 20M | 217 FPS |
| RT-DETRv2-L | v2, 2024 | 53.4 | 42M | 108 FPS |
| RT-DETRv4-S | v4, 2025 | 49.8 | Not stated | 273 FPS |
| RT-DETRv4-X | v4, 2025 | 57.0 | Not stated | 78 FPS |
RT-DETRv2, published in July 2024, kept the architecture and improved training with a set of low-cost refinements, raising accuracy at the same speed. RT-DETRv4, posted in October 2025 by a team that includes original authors, distils knowledge from a vision foundation model during training, which its authors say adds no inference cost. With Objects365 pre-training, the original R50 and R101 models reach 55.3 and 56.2 AP.
Speed on edge hardware
Neither the RT-DETR authors nor Ultralytics publish RT-DETR figures for NVIDIA Jetson, so the T4 numbers are the only official reference. For scale, Ultralytics’ own figures for its YOLO26n detector at TensorRT FP16 are about 1.7 ms on a T4, 1.4 ms on Jetson AGX Thor, 2.6 ms on AGX Orin 64GB and 4.6 ms on Orin Nano Super. On those numbers, which come from separate test set-ups, AGX Orin runs at roughly two-thirds of T4 speed and Orin Nano Super at roughly a third. Transformer models may scale differently, so test on the target module.
For deployment, export to ONNX and build an FP16 engine with TensorRT. INT8 needs checking: Ultralytics’ own Jetson Thor tables show YOLO26x falling from 0.661 to 0.522 mAP at INT8, so calibrate on site images and compare accuracy before committing.
When RT-DETR suits a project
RT-DETR is worth testing where objects overlap or crowd together, where a fixed post-processing time matters, or where the team already trains with NVIDIA TAO or PaddlePaddle. Its Apache 2.0 code licence is another reason teams shortlist it, although implementations inside other libraries carry those libraries’ own licences.
The larger versions suit modules with more GPU headroom. On Jetson that usually means Jetson AGX Orin computers or Orin NX for one to a few cameras, with Thor where many streams share one computer. Our Jetson comparison and module selector compares the modules side by side.
Quick answers on RT-DETR
RT-DETR: common questions
What does RT-DETR stand for?
Real-Time DEtection TRansformer. The name marks it as a real-time version of DETR, the detection transformer introduced in 2020.
What is DETR?
A detection model built on a transformer. DETR predicts a fixed set of objects directly, using one-to-one matching in training, so it needs no anchor boxes or NMS. It was accurate but slow, which RT-DETR set out to fix.
Is RT-DETR better than YOLO?
Neither wins everywhere. The RT-DETR paper reported higher accuracy than the YOLO models of 2023 at similar speed, and both families have moved on since. Compare them on your own images and hardware.
What is the difference between RF-DETR and RT-DETR?
They are different models. RT-DETR comes from researchers at Baidu and Peking University. RF-DETR is a separate real-time detection transformer from Roboflow, built on a DINOv2 backbone, with detection and segmentation versions.
How many parameters does RT-DETR have?
From about 20 million to 76 million. The authors list 20M for RT-DETR-R18 and 76M for RT-DETR-R101, with the HGNetv2-based L and X versions at 32M and 67M.
We integrate the Jetson or GPU computer, cameras and capture hardware for each detection system as standard, so it arrives ready for your model and pipeline.