explainx.ainewsletter3.5k
TrendingNewsPathwaysSkills
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

custom AI agents

[email protected]

get started

Find your pathTake Free Evaluation

learn

pathways — start freeworkshopsbootcampscoursescertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcptoolsagentsllmsdesignsagi trackerranks

company

aboutvisionmissionteaminstructorscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource librarydemofor LLMs

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

More from us

InfloqInfluencer marketingBgBlurPrivacy-first blurOlly SocialSocial AI copilotCeptoryVideo intelligenceBgRemoverBackground removal

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportprivacytermsdata rightssubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

On this page

  • TL;DR
  • What RF-DETR actually is
  • Benchmarks: COCO and RF100-VL, not just COCO
  • How the license actually splits
  • Running RF-DETR
  • Fine-tuning and NAS on the Roboflow platform
  • Should you use RF-DETR over YOLO or RT-DETR?
  • Related reading
← Back to blog

explainx / blog

RF-DETR: Roboflow's Real-Time Detection Transformer, Explained

RF-DETR is Roboflow's DINOv2-backed transformer for real-time object detection, instance segmentation, and keypoint detection. SOTA on COCO and RF100-VL, Apache 2.0 for most sizes, 8.8k GitHub stars. Full breakdown.

Aug 1, 2026·8 min read·Yash Thakker
Computer VisionObject DetectionOpen Source AIRoboflowInstance Segmentation
go deep
RF-DETR: Roboflow's Real-Time Detection Transformer, Explained

Roboflow's RF-DETR crossed 8,800 GitHub stars and landed a spot at ICLR 2026 — not bad for a detection model whose core pitch is unglamorous: real-time, accurate, and fine-tunable on your own data without a research team. It's a DINOv2-backed transformer that now covers three tasks — object detection, instance segmentation, and keypoint detection — in one consistent Python API, and it's actively maintained, with a perf fix to mask upsampling shipping just 11 hours before this writeup.

If you've been evaluating real-time detectors against the YOLO family or RT-DETR, here's what RF-DETR actually is, how it benchmarks, and how to get it running.

Weekly digest3.5k readers

Catch up on AI

Curated AI updates on agents, skills, and MCP — delivered to your inbox. Unsubscribe anytime.

TL;DR

QuestionAnswer
What is it?A real-time detection transformer with a DINOv2 vision backbone, covering detection, segmentation, and keypoints.
Who built it?Roboflow, published at ICLR 2026 (arXiv:2511.09554).
Is it free?Apache 2.0 for rfdetr core and Nano–Large detection, all segmentation sizes, and the keypoint preview. Only XL/2XL detection models sit under Roboflow's PML 1.0.
How fast is it?2.3ms (Nano) to 17.2ms (2XLarge) on an NVIDIA T4, TensorRT FP16, batch size 1.
How accurate is it?Up to 78.5 AP50 / 60.1 AP50:95 on COCO detection (2XLarge); benchmarked on RF100-VL too, not just COCO.
How do I install it?pip install rfdetr (Python 3.10+); pip install rfdetr[plus] for XL/2XL.
Can I train it on my own data?Yes — fine-tune via Google Colab or directly on the Roboflow platform, including a NAS mode that searches architectures per-dataset.
Stars / adoption8.8k GitHub stars, 1.1k forks, used by 150+ public repos, 92 contributors.

What RF-DETR actually is

RF-DETR stands apart from the CNN-based YOLO lineage by building on a DINOv2 vision transformer backbone — a self-supervised pretrained encoder from Meta AI — instead of training detection features from scratch. Roboflow's architecture builds on prior work from LW-DETR, DINOv2, and Deformable DETR, and the team credits all three explicitly in the repo.

The practical result: one package, rfdetr, exposes a consistent API across three computer vision tasks:

  • Object detection — six sizes, Nano through 2XLarge
  • Instance segmentation — the same six sizes, with mask output
  • Keypoint detection (preview) — a single COCO-person-keypoints-pretrained model

That consistency matters if you're deploying across a pipeline that needs more than boxes — e.g., detection for triage plus segmentation for precise masking — without switching model families or reworking your inference code.

Benchmarks: COCO and RF100-VL, not just COCO

A detail worth flagging for anyone who's been burned by vendor-reported numbers: Roboflow says all COCO accuracy figures are measured in-house, computed with pycocotools across the full 5,000-image val2017 split, using their own benchmarking harness (roboflow/sab) — so every row in their tables is directly comparable to every other row. Only rows marked with a dagger (†) are pulled from original authors' papers rather than re-measured. Latency numbers all come from an NVIDIA T4, TensorRT, FP16, batch size 1.

They also benchmark on RF100-VL, Roboflow's multi-domain real-world dataset collection — a meaningful signal, since COCO-only benchmarks can flatter models that overfit to COCO's specific object distribution and don't generalize to industrial, medical, or aerial imagery.

Detection sizes

SizeClassCOCO AP50COCO AP50:95Latency (T4, ms)Params (M)ResolutionLicense
NRFDETRNano67.648.42.330.5384×384Apache 2.0
SRFDETRSmall72.153.03.532.1512×512Apache 2.0
MRFDETRMedium73.654.74.433.7576×576Apache 2.0
LRFDETRLarge75.156.56.833.9704×704Apache 2.0
XLRFDETRXLarge △77.458.611.5126.4700×700PML 1.0
2XLRFDETR2XLarge △78.560.117.2126.9880×880PML 1.0

△ Requires pip install rfdetr[plus].

Segmentation sizes

SizeClassCOCO AP50COCO AP50:95Latency (T4, ms)Params (M)ResolutionLicense
NRFDETRSegNano63.040.33.433.6312×312Apache 2.0
SRFDETRSegSmall66.243.14.433.7384×384Apache 2.0
MRFDETRSegMedium68.445.35.935.7432×432Apache 2.0
LRFDETRSegLarge70.547.18.836.2504×504Apache 2.0
XLRFDETRSegXLarge72.248.813.538.1624×624Apache 2.0
2XLRFDETRSeg2XLarge73.149.921.838.6768×768Apache 2.0

Notably, every segmentation size — including XL and 2XL — stays under Apache 2.0, unlike detection where XL/2XL move to PML 1.0.

Keypoint detection (preview)

ModelClassCOCO AP50:95 (OKS)Latency (ms)Params (M)ResolutionLicense
Keypoint (Preview)RFDETRKeypointPreview71.89.740.7576×576Apache 2.0

Roboflow benchmarks keypoints against YOLO26-pose and YOLO11-pose on MS COCO, reporting AP50:95 under the OKS (Object Keypoint Similarity) metric — the standard for pose comparisons.

How the license actually splits

This trips people up, so it's worth stating plainly: licensing is per-component, not per-repo.

  • rfdetr (the core package) → Apache 2.0
  • Detection: Nano, Small, Medium, Large → Apache 2.0
  • Detection: XLarge, 2XLarge → PML 1.0 (requires rfdetr_plus / pip install rfdetr[plus])
  • Segmentation: all six sizes, Nano through 2XLarge → Apache 2.0
  • Keypoint preview → Apache 2.0

If you need a fully Apache 2.0 pipeline and don't need the top two detection tiers, you never have to touch the Plus extension at all — Medium or Large detection plus any segmentation size covers most production use cases already at 73–75+ AP50.

Running RF-DETR

Installation is a single pip install rfdetr on Python 3.10+. Detection:

python
import supervision as sv
from rfdetr import RFDETRMedium
from rfdetr.assets.coco_classes import COCO_CLASSES

model = RFDETRMedium()
detections = model.predict("https://media.roboflow.com/dog.jpg", threshold=0.5)

labels = [f"{COCO_CLASSES[class_id]}" for class_id in detections.class_id]
annotated_image = sv.BoxAnnotator().annotate(detections.metadata["source_image"], detections)
annotated_image = sv.LabelAnnotator().annotate(annotated_image, detections, labels)

Segmentation swaps in a RFDETRSeg* class and sv.MaskAnnotator():

python
from rfdetr import RFDETRSegMedium
model = RFDETRSegMedium()
detections = model.predict("https://media.roboflow.com/dog.jpg", threshold=0.5)

Keypoints:

python
from rfdetr import RFDETRKeypointPreview
model = RFDETRKeypointPreview()
key_points = model.predict("image.jpg", threshold=0.5)

One gotcha worth noting: COCO_CLASSES only resolves names for COCO-pretrained checkpoints. Once you fine-tune on a custom dataset, switch to detections.data["class_name"] instead — it reads class names directly from the checkpoint and works for both COCO and custom label sets.

RF-DETR also ships an rfdetr-* alias family (rfdetr-nano, rfdetr-medium, etc.) for use through Roboflow's Inference package, if you'd rather not manage the model classes directly.

Fine-tuning and NAS on the Roboflow platform

RF-DETR's published sizes weren't hand-picked — they came out of a neural architecture search (NAS) process, and Roboflow has since improved that NAS pipeline and exposed it directly on the platform. Instead of choosing from six fixed sizes, a single NAS training run searches for the architecture best suited to your dataset, and Roboflow reports it now beats both the original paper's NAS results and the open-source named checkpoints on RF100-VL's accuracy-latency Pareto frontier.

Training paths:

  1. Google Colab — a guided notebook for quick fine-tuning experiments.
  2. Roboflow platform — managed training, including the NAS mode, with a documented step-by-step video walkthrough.

Should you use RF-DETR over YOLO or RT-DETR?

RF-DETR's core argument is the accuracy-latency Pareto position: Roboflow's own benchmarks show it beating comparable real-time YOLO and RT-DETR variants at matched latency on both COCO and RF100-VL. That's a meaningful claim specifically because RF100-VL exists — a lot of "beats YOLO" claims in this space are COCO-only, and COCO's object distribution doesn't necessarily transfer to a warehouse camera feed or a drone survey.

That said, benchmarks measured in-house by the model's own creator — even with a published, open-source harness like roboflow/sab — are not a substitute for testing on your own data and hardware target. If you're choosing a detector for production, the move is still: pull the size that fits your latency budget, fine-tune on a representative slice of your actual dataset, and compare against your current baseline directly.

For teams already running detection at the edge, RF-DETR's Nano and Small sizes (2.3ms–3.5ms on a T4) are worth pairing against setups like Frigate NVR, which currently leans on TensorFlow-based object detection, or dedicated inference hardware covered in our Coral Edge AI guide. Both are areas where a faster, more accurate open-weight detector directly changes what's deployable on constrained hardware.

If your use case sits downstream of detection — you don't need boxes, you need to act on what's found, by blurring it, erasing it, or swapping it out — RF-DETR-Seg's per-instance masks are exactly the kind of precise, per-object selection that tools like BGBlur.com build on for blurring, removing, or replacing any object in a video without hand-rotoscoping every frame.

Related reading

  • Frigate NVR: open-source AI camera system for Home Assistant
  • Coral Edge AI: Google's edge computing platform
  • AI vs machine learning vs deep learning guide
  • Go open source AI: Fortune 500 guide
  • Google Gemma 4 12B: multimodal local AI guide
  • RF-DETR on GitHub
  • RF-DETR paper (arXiv:2511.09554)
  • RF-DETR documentation

Benchmarks, licensing terms, and package details reflect the RF-DETR repository as of August 1, 2026 (v1.9.0). Check the releases page for the latest version before deploying.

Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

Related posts

Jul 31, 2026

DeepSeek-V4-Flash-0731: Codex Support and $0.14/$0.28 Pricing

DeepSeek-V4-Flash-0731 keeps the same architecture as the preview but ships a large agent-benchmark jump over V4-Pro-Preview, native Responses API format, and drop-in Codex support — undercutting GLM 5.2 and GPT Luna on price.

Jul 31, 2026

MiniMax-H3: An Open Video Model Ranked #1 on Video Editing With Audio

A "#MiniMaxH3" teaser from MiniMax's official account was followed hours later by a MiniMax engineer claiming the model is open and already leading Artificial Analysis's video leaderboard on editing-with-audio.

Jul 27, 2026

Neutrino-1 8B: Ternary Weights on One Artifact

July 27, 2026: Neutrino-1 8B (Qwen3-8B derivative) packs coded ternary linears into one ~3.88 GB artifact, pip/GGUF/MLX doors, and a 0.6B draft pair. explainx.ai covers specs, HN skepticism, and how it compares to PrismML Bonsai.