RF-DETR vs YOLOv4
Compare RF-DETR and YOLOv4 side-by-side.
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.
Models in this comparison
RF-DETR vs YOLOv4 Comparison Table
Evals updated October 13, 2026Pricing updated October 18, 2026
| Property | RF-DETR | YOLOv4 |
|---|---|---|
| Organization | Roboflow | Academia Sinica |
| Category | open | open |
| Modality | vision | vision |
| Release Date | Mar 2025 | Apr 2020 |
| Context Window | — | — |
| Parameters | 30.5M-126.9M | Unknown |
| License | Apache 2.0 | Custom |
| Commercial use | free for commercial use (XL and 2XL: PML 1.0, included on Roboflow cloud) | See license terms |
| Model Sizes input resolution per size variant | ||
| Nano | 384×384 | Not available |
| Small | 512×512 | Not available |
| Medium | 576×576 | Not available |
| Large | 704×704 | Not available |
| XL | 700×700 | Not available |
| 2XL | 880×880 | Not available |
| Vision Tasks | ||
| Object Detection | Demo (COCO) | Supported |
| Model Features | ||
| Real-Time Vision | Supported | Not listed |
RF-DETR vs YOLOv4: Overview
RF-DETR is a real-time transformer-based object detection model developed by Roboflow, with code and weights first released in March 2025. RF-DETR Nano, Small, Medium, and Large are released under the Apache 2.0 license, so they're commercially usable out of the box: you can ship them in closed-source, commercial products, including self-hosted deployments, without paying a license fee or open-sourcing your code. RF-DETR XL and 2XL use the Roboflow Platform Model License (PML 1.0): commercial use is included when you deploy on Roboflow, and commercial self-hosting requires the Enterprise add-on. It is the first real-time model to exceed 60 AP on the Microsoft COCO benchmark, 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 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.