Roboflow

RT-DETR vs YOLOv8

Compare RT-DETR and YOLOv8 side-by-side.

Compare RT-DETR vs YOLOv8 live

Run the same image across every model that supports a task and compare their outputs side-by-side.

These models don't share enough common tasks for a side-by-side demo. See the comparison table below for their capabilities.

Models in this comparison

Baidu

RT-DETR vs YOLOv8 Comparison Table

Evals updated July 10, 2026Pricing updated July 21, 2026

PropertyRT-DETRYOLOv8
OrganizationBaiduUltralytics
Categoryopenopen
Modalityvisionvision
Release DateApr 2023Jan 2023
Context Window
Parameters20M-76M3.2M-68.2M
LicenseApache 2.0AGPL 3.0
Model Sizes input resolution per size variant
Nano1280×1280, 640×640
Small1280×1280, 640×640
Medium1280×1280, 640×640
Large1280×1280, 640×640
XL1280×1280, 640×640
Vision Tasks
Object DetectionDemo (COCO)
Model Features
Real-Time Vision

RT-DETR vs YOLOv8: Overview

RT-DETR

RT-DETR (Real-Time Detection Transformer) is an object detection model developed by Baidu, released in April 2023 under the Apache 2.0 license. It is the first transformer-based real-time object detector, addressing the inference speed limitations of earlier DETR models through an efficient hybrid encoder that decouples intra-scale interaction and cross-scale fusion, enabling the model to process multi-scale features without the high computational overhead of standard transformer encoders.

RT-DETR achieves 53.1% AP on COCO at 108 FPS on an NVIDIA T4 GPU for the RT-DETR-L variant, outperforming comparably sized YOLO detectors at similar speeds. It maintains end-to-end inference without non-maximum suppression, simplifying deployment pipelines. RT-DETR established the baseline for real-time transformer detection and has been extended by subsequent works including RF-DETR and RT-DETRv2.

YOLOv8

YOLOv8 is an object detection and multi-task vision model developed by Ultralytics, released in January 2023 under the AGPL-3.0 license. It succeeds YOLOv5 and introduces an anchor-free detection head, a new C2f module for improved gradient flow, and a decoupled head that separates classification and regression tasks. These changes improve both accuracy and training efficiency compared to earlier Ultralytics models.

YOLOv8 supports object detection, instance segmentation, image classification, pose estimation, and oriented bounding box detection within a unified codebase. It is available in five sizes from Nano to Extra Large and exports to ONNX, TensorRT, CoreML, and other formats. YOLOv8 is one of the most widely adopted detection models in production and is directly supported by Roboflow Inference for custom model training and deployment.

BaiduRT-DETR