Model sizes
RF-DETR-Seg offers model sizes from Nano to 2XLarge. All latency numbers were measured on an NVIDIA T4 using TensorRT, FP16, and batch size 1.| Size | Python class | Inference alias | COCO AP50 | COCO AP50:95 | Latency (ms) | Params (M) | Resolution | License |
|---|---|---|---|---|---|---|---|---|
| N | RFDETRSegNano | rfdetr-seg-nano | 63.0 | 40.3 | 3.4 | 33.6 | 312x312 | Apache 2.0 |
| S | RFDETRSegSmall | rfdetr-seg-small | 66.2 | 43.1 | 4.4 | 33.7 | 384x384 | Apache 2.0 |
| M | RFDETRSegMedium | rfdetr-seg-medium | 68.4 | 45.3 | 5.9 | 35.7 | 432x432 | Apache 2.0 |
| L | RFDETRSegLarge | rfdetr-seg-large | 70.5 | 47.1 | 8.8 | 36.2 | 504x504 | Apache 2.0 |
| XL | RFDETRSegXLarge | rfdetr-seg-xlarge | 72.2 | 48.8 | 13.5 | 38.1 | 624x624 | Apache 2.0 |
| 2XL | RFDETRSeg2XLarge | rfdetr-seg-2xlarge | 73.1 | 49.9 | 21.8 | 38.6 | 768x768 | Apache 2.0 |
Run on an image
- Single image
- Video file
- Webcam stream
- RTSP stream
Use
sv.MaskAnnotator() to render instance masks. For detections without masks (e.g., when comparing with detection models), use sv.BoxAnnotator() instead.Batch inference
Pass a list of images topredict() to process multiple images in a single forward pass. The method returns a list of supervision.Detections objects, each containing bounding boxes, class IDs, confidence scores, and instance masks.
Run with Roboflow Inference
You can also run RF-DETR-Seg using the Inference library. To switch model size, use the corresponding inference alias from the table above.Pretrained models
Full model comparison table with accuracy, latency, and parameter counts.
Object detection
Run RF-DETR for bounding box object detection.
Train a model
Fine-tune RF-DETR-Seg on your own dataset.
Deploy to Roboflow
Deploy your segmentation model to the Roboflow platform.