Roboflow

RF-DETR vs YOLOv4

We don't benchmark RF-DETR or YOLOv4 on Vision Evals. RF-DETR is open-weight under Apache 2.0: free for commercial use (XL and 2XL: PML 1.0, included on Roboflow cloud). YOLOv4 is open-weight under Custom.

Compare RF-DETR vs YOLOv4 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.

RF-DETR vs YOLOv4 Comparison Table

PropertyRF-DETRYOLOv4
OrganizationRoboflowAcademia Sinica
Categoryopenopen
Modalityvisionvision
Release DateMar 2025Apr 2020
Context Window——
Parameters30.5M-126.9MUnknown
LicenseApache 2.0Custom
Commercial usefree for commercial use (XL and 2XL: PML 1.0, included on Roboflow cloud)See license terms
COCO Benchmark object detection, mAP 50:95 on COCO val2017
Best size59.92XL · 126.9M paramsNot benchmarked
Smallest size48.4Nano · 30.5M paramsNot benchmarked
mAP range48.4–59.9across 6 sizesNot benchmarked
Model Sizes COCO mAP 50:95, tested resolution and params per size
Nano48.4384×384 · 30.5M paramsNot available
Small53.0512×512 · 32.1M paramsNot available
Medium54.8576×576 · 33.7M paramsNot available
Large56.3704×704 · 33.9M paramsNot available
XL58.5700×700 · 126.4M paramsNot available
2XL59.9880×880 · 126.9M paramsNot available
COCO val2017 mAP 50:95 and parameter counts from leaderboard.roboflow.com. Size names don't line up across model families, so compare sizes with similar parameter counts.
Vision Tasks
Object DetectionDemo (COCO)Supported
Model Features
Real-Time VisionSupportedNot listed

RF-DETR vs YOLOv4: Overview

RF-DETR

RF-DETR is a real-time transformer-based object detection model developed by Roboflow, with code and weights first released in March 2025. Its largest size, 2XL, reaches 59.9 mAP 50:95 on Microsoft COCO val2017, the highest of the 60 detectors on leaderboard.roboflow.com. It is built on a DINOv2 vision transformer backbone, with weight-sharing neural architecture search used to identify accuracy-latency trade-offs. The full family spans six sizes from Nano (30.5M parameters, 384×384 input) to 2XL (126.9M parameters, 880×880 input), with the accompanying research paper accepted to ICLR 2026.

RF-DETR is designed for strong domain adaptability, achieving state-of-the-art performance on RF100-VL, a benchmark measuring generalization to real-world object detection tasks across diverse domains. It is deployable through Roboflow Inference and supports fine-tuning on custom datasets, making it well suited for domain-specific applications with limited training data.

YOLOv4

YOLOv4 is an object detection model developed by Alexey Bochkovskiy, Chien-Yao Wang, and Hong-Yuan Mark Liao at Academia Sinica, released in April 2020 via the Darknet framework. It combines a CSPDarknet53 backbone, PANet neck, and YOLOv3 detection head with a large set of training improvements — Bag of Freebies and Bag of Specials — that improve accuracy with minimal inference cost increase.

YOLOv4 achieves 43.5% AP on COCO at 65 FPS on a Tesla V100 GPU. The Darknet implementation is the original version, distinguishing it from subsequent PyTorch-based reimplementations. It remains a widely referenced detection architecture and a supported training target in Roboflow Inference.