DETRs beat YOLOs on real-time object detection, now with v2 and v4

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

RT-DETRv2 and v4 let teams deploy transformer-based object detectors at real-time speeds with better accuracy than YOLO at similar latency, giving production teams a credible alternative to the YOLO default.

Read this as

RT-DETR is an open-source AI tool that spots objects in images and video. Detectors built on transformer architecture were usually accurate but too slow for live video, so this project made them fast enough to compete with the popular YOLO family. Version 2, released with the paper at CVPR 2024, improves accuracy without slowing anything down, and version 4 arrived in late 2025. Developers running cameras or edge devices can now benchmark it against their current detector.

Teams building real-time video or edge applications have historically picked YOLO because transformer detectors were too slow. RT-DETR, whose v2 paper appeared at CVPR 2024, now matches or beats YOLO variants on speed-accuracy tradeoffs, with RT-DETRv2-S reaching 48.1 mAP. The project ships pretrained weights and deployment guidance for TensorRT, ONNX Runtime and OpenVINO, so switching costs are mainly benchmarking and retraining time. Organizations locked into YOLO pipelines gain little urgently, but should benchmark this against their incumbent.

RT-DETR is an end-to-end Detection Transformer for real-time inference, with the official PyTorch repo hosting the CVPR 2024 paper and RT-DETRv2. V2's gains are 'bag-of-freebies', training-time changes that add no inference latency: RT-DETRv2-S hits 48.1 mAP, 1.6 points above RT-DETR-R18. Additions include RegNet and DLA34 backbones (September 2024), sliced inference for small objects (October 2024), and remap_mscoco_category for custom datasets. Deployment details live in external discussion threads rather than the README.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

RT-DETR RT-DETRv2 RT-DETRv4 YOLO CVPR 2024 TensorRT PaddlePaddle

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.

datasette-charts 0.4a0

Datasette now lets developers add custom chart types more easily, expanding visualisation options for data projects.