rfdetr
RF-DETR
What it is and what it does
RF-DETR is a production-ready computer vision library for detecting objects, segmenting instances, and detecting keypoints in images using a transformer architecture. It wraps a DINOv2 vision transformer backbone and provides a unified API across all three tasks. The library is built by Roboflow and includes benchmarked model sizes (N, S, M, L) under Apache 2.0, plus larger variants (XL, 2XL) under PML 1.0.
The package is designed for developers building real-time vision applications who need strong accuracy-latency tradeoffs. It depends on PyTorch, torchvision, transformers, numpy, and several utility libraries (requests, tqdm, pydantic, supervision, pyDeprecate). The library is actively maintained, recently released, and has no known security vulnerabilities.
Use it for:
- Build real-time object detection systems for robotics or autonomous systems using the lightweight N/S/M model variants.
- Perform instance segmentation on images or video streams where you need both bounding boxes and pixel-level masks.
- Integrate keypoint detection (preview) into pose estimation or human activity recognition pipelines.
- Benchmark detection accuracy against other SOTA models using the published COCO and RF100-VL results.
- Deploy models with neural architecture search to optimize for your specific dataset and hardware constraints.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
RF-DETR is a transformer-based object detection, instance segmentation, and keypoint detection library built on a DINOv2 vision transformer backbone, designed for real-time inference.
Yes. RF-DETR is actively maintained, recently released, has no security vulnerabilities, and offers strong accuracy-latency tradeoffs for object detection and segmentation. The Apache 2.0 base license is permissive. Install friction is low. The main consideration is Python 3.10+ requirement and PyTorch dependency; if your environment already supports those, this is a solid choice for real-time vision tasks.
Install
rfdetr on PyPI
pip
pip install rfdetruv
uv add rfdetrpoetry
poetry add rfdetrInstalling rfdetr
Before you install
Installation is straightforward via pip with low friction. The package is actively maintained with a recent release (3 days old) and strong repository activity (8972 stars). It requires Python 3.10 or later and depends on established libraries like torch, torchvision, transformers, and numpy.
License in practice
The base rfdetr package and standard models are Apache 2.0 licensed, permitting commercial and private use. Premium models (RF-DETR-XL/2XL) use PML 1.0, which may have different terms—verify licensing for those components if you plan to use them.
Quickstart
pip install rfdetr
import rfdetr
model = rfdetr.load_model('rf-detr-s')
results = model.predict(image_path='photo.jpg')
Requires Python 3.10 or later. Torch and torchvision must be installed; GPU support is optional but recommended for real-time performance.
Verify before relying
- Whether keypoint detection is production-ready or still in preview as stated in the description
- Specific hardware requirements or recommended GPU types for real-time inference targets
- Whether the package includes pre-trained model weights or if they must be downloaded separately
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 9 — requests, numpy, torch, torchvision, tqdm, transformers, pydantic, supervision, pyDeprecate |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 525,564/month — #6,185 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: rfdetr-1.9.2-py3-none-any.whl
Keywords: machine-learning, deep-learning, vision, ML, DL, AI, DETR, RF-DETR, Roboflow
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
rf100vlProvides programmatic access to RF100-VL, a…
permissive · top 15,000 on PyPI
sahiSAHI performs sliced inference on large images…
permissive · top 15,000 on PyPI
mmdetMMDetection is an object detection and instance…
permissive · top 15,000 on PyPI
groundingdino-pyGrounding DINO is an open-set object detector…
permissive · top 15,000 on PyPI
vit-pytorchProvides PyTorch implementations of Vision…
permissive · top 15,000 on PyPI
segmentation-models-pytorchProvides PyTorch-based neural network models…
permissive · top 15,000 on PyPI
pytorchcvProvides a collection of pretrained computer…
unclear · top 15,000 on PyPI
ultralyticsUltralytics YOLO provides a unified framework…
agpl · top 5,000 on PyPI
inference-modelsLoads and runs computer vision models from…
unclear · top 15,000 on PyPI
icevisionIceVision provides a unified framework for…
permissive · top 15,000 on PyPI