# roboflow/rf-detr

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/roboflow-rf-detr).**

5,643 stars · 668 forks · Python · apache-2.0

## Links

- GitHub: https://github.com/roboflow/rf-detr
- Homepage: https://rfdetr.roboflow.com
- awesome-repositories: https://awesome-repositories.com/repository/roboflow-rf-detr.md

## Topics

`computer-vision` `detr` `instance-segmentation` `machine-learning` `object-detection` `rf-detr` `sota`

## Description

RF-DETR is a Python library for training and deploying object detection, instance segmentation, and keypoint detection models built on a vision transformer architecture. It provides a unified command-line interface and Python API for the full workflow, from fine-tuning pretrained checkpoints on custom datasets to running inference on images, video files, and live camera streams.

The project supports training on datasets in COCO or YOLO format, with automatic format detection and configurable augmentation pipelines. Models can be exported to ONNX, TFLite, or TensorRT for deployment across edge hardware, mobile devices, and serverless APIs. Training includes built-in experiment tracking with TensorBoard, Weights and Biases, MLflow, and ClearML, along with multi-GPU support, early stopping, and automatic checkpoint selection based on validation mAP.

Inference capabilities cover batch processing, real-time detection from webcams or RTSP streams, and per-instance segmentation masks. The library also provides tools for converting between dataset formats and caching model weights locally for faster repeated predictions.

## Tags

### Artificial Intelligence & ML

- [Instance Segmentation Engines](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-libraries/instance-segmentation-engines.md) — Produces per-instance segmentation masks for every detected object using a single unified model API. ([source](https://rfdetr.roboflow.com/))
- [Object Detection](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-systems/computer-vision/object-detection-tracking/object-detection.md) — Runs a pretrained vision transformer model to locate and classify objects with bounding boxes. ([source](https://cdn.jsdelivr.net/gh/roboflow/rf-detr@develop/README.md))
- [Real-Time Object Detection](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-systems/computer-vision/object-detection-tracking/real-time-object-detection.md) — Runs transformer-based detection models on images and returns bounding boxes and class labels with low latency. ([source](https://rfdetr.roboflow.com/))
- [Image Segmentation](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-systems/image-segmentation.md) — Runs pretrained segmentation models on static images and returns detected objects with masks and labels. ([source](https://rfdetr.roboflow.com/latest/learn/run/segmentation/))
- [Custom Model Training](https://awesome-repositories.com/f/artificial-intelligence-ml/custom-model-training.md) — Fine-tunes a pre-trained detection model on a custom dataset with configurable parameters. ([source](https://rfdetr.roboflow.com/latest/learn/train/customization/))
- [Detection Model Training](https://awesome-repositories.com/f/artificial-intelligence-ml/custom-model-training/detection-model-training.md) — Trains detection, segmentation, and keypoint models on custom datasets with automatic COCO or YOLO format detection. ([source](https://rfdetr.roboflow.com/latest/learn/train/))
- [Vision Detection Model Training](https://awesome-repositories.com/f/artificial-intelligence-ml/custom-model-training/vision-detection-model-training.md) — Trains custom vision detection, segmentation, and keypoint models from pretrained checkpoints on user datasets. ([source](https://cdn.jsdelivr.net/gh/roboflow/rf-detr@develop/README.md))
- [Image Inference Clients](https://awesome-repositories.com/f/artificial-intelligence-ml/inference-clients/on-device-inference/image-inference-clients.md) — Accepts images as file paths, URLs, PIL Images, or arrays and returns detections. ([source](https://rfdetr.roboflow.com/latest/reference/rfdetr/))
- [Keypoint Detection](https://awesome-repositories.com/f/artificial-intelligence-ml/keypoint-detection.md) — Ships a vision transformer model for detecting human keypoints in images. ([source](https://rfdetr.roboflow.com/latest/learn/benchmarks/))
- [Model Fine-Tuning](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-training-and-tuning/fine-tuning-and-customization/model-fine-tuning.md) — Fine-tunes pretrained vision transformer models on custom datasets for detection, segmentation, and keypoint tasks. ([source](https://rfdetr.roboflow.com/))
- [Checkpoint Loaders](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-training-and-tuning/fine-tuning-and-customization/model-fine-tuning/fine-tuned-model-deployment/checkpoint-loaders.md) — Loads fine-tuned models from checkpoints to run predictions on images and videos. ([source](https://rfdetr.roboflow.com/latest/learn/train/))
- [Model Checkpoints](https://awesome-repositories.com/f/artificial-intelligence-ml/model-checkpoints.md) — Restores model weights from a checkpoint file, auto-detecting the correct variant. ([source](https://rfdetr.roboflow.com/latest/reference/rfdetr/))
- [Segmentation Model Training](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-systems/image-segmentation/segmentation-model-training.md) — Configures and trains a model to predict per-pixel class labels for detected object regions. ([source](https://rfdetr.roboflow.com/latest/reference/segmentation_train_config/))
- [ONNX Model Exporters](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-deployment-and-serving/serialization-and-export-formats/onnx-model-exporters.md) — Converts trained models to ONNX format for cross-platform inference with ONNX Runtime, OpenVINO, or TensorRT. ([source](https://rfdetr.roboflow.com/latest/learn/export/))
- [Image Augmentation Transforms](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/machine-learning-datasets/image-classification-datasets/image-augmentation-transforms.md) — Configures per-dataset augmentation pipelines with automatic bounding box and mask handling. ([source](https://rfdetr.roboflow.com/latest/learn/train/advanced/))
- [Model Evaluation Metrics](https://awesome-repositories.com/f/artificial-intelligence-ml/model-evaluation-metrics.md) — Computes mAP, precision, recall, and F1 on a validation dataset after each epoch. ([source](https://rfdetr.roboflow.com/latest/reference/training/))
- [Domain-Specific Augmentation Presets](https://awesome-repositories.com/f/artificial-intelligence-ml/model-parameters/parameter-sampling/augmentation/domain-specific-augmentation-presets.md) — Selects from curated augmentation presets optimized for dataset size or domain like aerial and industrial. ([source](https://rfdetr.roboflow.com/latest/learn/train/augmentations/))
- [Validation-Based Checkpoint Selection](https://awesome-repositories.com/f/artificial-intelligence-ml/model-performance-iteration-workflows/best-iteration-selection/validation-based-checkpoint-selection.md) — Automatically saves and selects the best-performing model checkpoints based on validation mAP scores during training. ([source](https://rfdetr.roboflow.com/latest/learn/train/))
- [Validation Evaluators](https://awesome-repositories.com/f/artificial-intelligence-ml/model-training/validation-evaluators.md) — Evaluates model performance on a validation dataset and logs mAP and F1 scores. ([source](https://rfdetr.roboflow.com/latest/learn/train/customization/))
- [Training Checkpointers](https://awesome-repositories.com/f/artificial-intelligence-ml/training-checkpointers.md) — Saves and resumes training states including model weights, optimizer state, and epoch number from checkpoints. ([source](https://rfdetr.roboflow.com/latest/learn/train/))

### Part of an Awesome List

- [Pretrained Checkpoint Fine-Tuning](https://awesome-repositories.com/f/awesome-lists/ai/model-training-and-fine-tuning/pretrained-checkpoint-fine-tuning.md) — Starts training from COCO-pretrained weights across model sizes to accelerate convergence and improve accuracy. ([source](https://rfdetr.roboflow.com/latest/learn/train/))
- [Experiment Tracking](https://awesome-repositories.com/f/awesome-lists/data/experiment-tracking.md) — Logs training metrics to TensorBoard, Weights and Biases, ClearML, and MLflow for experiment monitoring. ([source](https://rfdetr.roboflow.com/latest/learn/train/))

### Development Tools & Productivity

- [CLI Training Toolkits](https://awesome-repositories.com/f/development-tools-productivity/cli-training-toolkits.md) — Provides a unified CLI with fit, validate, test, and predict subcommands for managing training workflows. ([source](https://rfdetr.roboflow.com/latest/reference/training/))

### DevOps & Infrastructure

- [Model Export Formats](https://awesome-repositories.com/f/devops-infrastructure/deployment-management/model-export-formats.md) — Converts trained detection models to ONNX and TFLite for production deployment. ([source](https://rfdetr.roboflow.com/latest/reference/rfdetr/))

### Graphics & Multimedia

- [Video Object Segmentations](https://awesome-repositories.com/f/graphics-multimedia/media-processing-analysis/media-manipulation/media-processing-workflows/video-transformation-enhancement/chunked-video-processing/video-processing-apis/video-input-processing/real-time-video-analysis/video-object-segmentations.md) — Processes frames from video files, webcams, or RTSP streams in real time with segmentation masks and labels. ([source](https://rfdetr.roboflow.com/latest/learn/run/segmentation/))

### Scientific & Mathematical Computing

- [Augmentation Geometric Transforms](https://awesome-repositories.com/f/scientific-mathematical-computing/linear-algebra-routines/geometric-transformation-routines/augmentation-geometric-transforms.md) — Registers custom geometric transforms that automatically update bounding boxes and masks during augmentation. ([source](https://rfdetr.roboflow.com/latest/learn/train/augmentations/))
- [Augmentation Pipeline Composers](https://awesome-repositories.com/f/scientific-mathematical-computing/linear-algebra-routines/geometric-transformation-routines/transformation-composers/augmentation-pipeline-composers.md) — Combines image augmentation transforms with probabilistic containers like OneOf, SomeOf, and Sequential. ([source](https://rfdetr.roboflow.com/latest/learn/train/augmentations/))
