RF-DETR requires Python >= 3.10. Install it in a compatible environment before proceeding.
Key features
- State-of-the-art on COCO — RF-DETR achieves the best accuracy–latency trade-off among real-time object detection and instance segmentation models on both COCO and RF100-VL.
- Multiple model sizes — Six sizes from Nano to 2XLarge let you match your latency and accuracy requirements.
- Detection and segmentation — A single, consistent API covers both object detection and instance segmentation tasks.
- DINOv2 backbone — A windowed DINOv2 vision transformer backbone powers all model sizes.
- Fine-tuning support — Fine-tune any model size on your own dataset in a single
model.train()call.
Get started
Quickstart
Run your first detection or segmentation model in minutes.
Run detection
Load and run pre-trained RF-DETR detection models on images and video.
Train a model
Fine-tune RF-DETR on your custom dataset.
API reference
Explore the full Python API surface.
Model sizes
RF-DETR provides detection and segmentation models across six sizes.| 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 |
Research paper
RF-DETR was presented at ICLR 2026. The architecture is described in the paper RF-DETR: Neural Architecture Search for Real-Time Detection Transformers (arXiv:2511.09554).Licensing
Licensing is split by component:- Apache 2.0 — The
rfdetrpackage, all code, and Apache-designated model weights (Nano through Large for detection; all segmentation sizes). - PML 1.0 — Plus components, including RF-DETR-XL and RF-DETR-2XL detection models. Requires
pip install rfdetr[plus].