Quickstart
Run your first detection or segmentation model in minutes.
Installation
Install RF-DETR via pip, uv, or from source.
Train a model
Fine-tune RF-DETR on your custom dataset.
API Reference
Explore the full Python API surface.
What is RF-DETR?
RF-DETR uses a windowed DINOv2 vision transformer backbone and a deformable DETR detection head to achieve real-time inference with leading COCO accuracy. It supports both object detection and instance segmentation through a single, consistent Python API.Run detection
Run pre-trained detection models on images, video, and streams.
Run segmentation
Run pre-trained segmentation models for pixel-level predictions.
Pretrained models
Overview of all available model sizes and their benchmarks.
Dataset formats
Train on COCO or YOLO format datasets.
Export to ONNX
Export models for deployment with ONNX Runtime or TensorRT.
Deploy to Roboflow
Deploy fine-tuned models to Roboflow cloud inference.
Get started in 3 steps
Model sizes
RF-DETR provides detection and segmentation models across six sizes to match your latency and accuracy requirements.| Size | Detection class | COCO AP50:95 | Latency (ms) | License |
|---|---|---|---|---|
| N | RFDETRNano | 48.4 | 2.3 | Apache 2.0 |
| S | RFDETRSmall | 53.0 | 3.5 | Apache 2.0 |
| M | RFDETRMedium | 54.7 | 4.4 | Apache 2.0 |
| L | RFDETRLarge | 56.5 | 6.8 | Apache 2.0 |
| XL | RFDETRXLarge | 58.6 | 11.5 | PML 1.0 |
| 2XL | RFDETR2XLarge | 60.1 | 17.2 | PML 1.0 |
XL and 2XL detection models require
pip install rfdetr[plus] and are licensed under PML 1.0. All other models and code are Apache 2.0.