Apache-2.0 · real-time · edge-ready

See every object,
every pixel, every keypoint.

D-FINE-seg is a family of vision models that find objects, outline them, label every pixel of a scene and place keypoints such as human pose, fast enough to run on a robot, a car or a camera.

View on GitHub
⟷
CameraWhat the model sees
Country road at dusk. Off-road model trained on GOOSE, 69.8 mIoU, full 2048×1024 frames. Largest model, 15 ms per frame. Drag the handle, hover a pixel.

One street, four ways of seeing

The same model family, switched by a single setting. Pick a task.

Every pixel gets a class: road, sidewalk, car, person, tree, sky. It is how a car knows where it can drive.

Out in the wild

The night sky, mines, reefs, cities and building sites. Trained once per domain. Click any tile to explore.

Fast and accurate

Measured end-to-end on one RTX 5070 Ti with TensorRT, the way it would run in a product.

S model · 640×640 input · end-to-end latency per image

Pixels1.8 msSemantic segmentation, 72.8 mIoU on Cityscapes
Boxes2.0 msObject detection, beats the larger YOLO26-M (3.0 ms) on Cityscapes
Outlines3.1 msInstance segmentation, beats the larger YOLO26-M (5.3 ms) on Cityscapes
Keypoints2.1 msHuman pose, 65.4 AP on COCO vs 62.7 for YOLO26s-pose

Accuracy vs. speed, Cityscapes semantic segmentation at 2048×1024

Each dot is a model size. Up and to the left is better.

D-FINE-seg Other models
Full-resolution whole-image inference, TensorRT FP16, batch 1. Data: cityscapes-benchmark.
All the numbers · every benchmark on this page, as tables

Cityscapes semantic segmentation, whole 2048×1024 frames

ModelmIoULatency (ms)Params (M)
D-FINE-seg-X84.8414.6456.30
D-FINE-seg-L83.809.7724.97
YOLO26x-sem83.5813.5840.13
Mask2Former-Swin-L83.3394.07215.46
Mask2Former-Swin-B83.2979.85106.89
EfficientViT-L283.2019.8752.61
EfficientViT-B383.0121.5839.60
YOLO26l-sem82.958.7717.85
EfficientViT-L182.6417.7840.24
Mask2Former-Swin-S82.4373.3268.72
Mask2Former-Swin-T82.1969.3347.41
EfficientViT-B282.0616.2515.32
YOLO26m-sem82.027.5414.30
D-FINE-seg-M81.418.2615.95
SegFormer-B581.4142.1284.61
SegFormer-B481.1536.7864.01
D-FINE-seg-S81.126.377.99
YOLO26s-sem80.805.526.49
SegFormer-B380.7729.4347.24
EfficientViT-B180.5313.354.80
SegFormer-B279.9423.4627.36
Mask2Former-R10179.7268.9363.00
Mask2Former-R5079.3066.5144.01
YOLO26n-sem78.254.711.63
D-FINE-seg-N77.994.213.36
SegFormer-B177.4212.3213.68
EfficientViT-B075.6311.900.71
SegFormer-B074.438.783.72

Cityscapes val, 500 images, one forward pass per frame. D-FINE-seg sizes trained by us; the other 23 are the official checkpoints, not retrained. End-to-end latency (each framework's own pre- and postprocessing), TensorRT FP16, batch 1, RTX 5070 Ti. Protocol and per-class IoU: cityscapes-benchmark ↗

Cityscapes object detection at 640

ModelF1PrecisionRecallLatency (ms)Params (M)
D-FINE-seg S0.7030.8170.6172.010.3
YOLO26-M0.6910.7920.6133.021.8
RF-DETR-medium0.6730.7690.59910.233.4

Every model fine-tuned by us on Cityscapes, scored on the 500 val images, confidence threshold tuned per framework for the best F1. D-FINE-seg and YOLO26 run at 640×640, RF-DETR at its own default resolution (576×576). End-to-end latency (each framework's own pre- and postprocessing), TensorRT FP16, batch 1, RTX 5070 Ti. Protocol: cityscapes-benchmark ↗

Cityscapes instance segmentation at 640

ModelF1PrecisionRecallLatency (ms)Params (M)
D-FINE-seg S0.6610.7480.5923.111.9
RF-DETR-seg-medium0.6200.7890.51016.835.4
YOLO26-M0.5990.6880.5305.327.0

Same protocol as detection; RF-DETR-seg-medium runs at its own default resolution (432×432). End-to-end latency (each framework's own pre- and postprocessing), TensorRT FP16, batch 1, RTX 5070 Ti. Protocol: cityscapes-benchmark ↗

Cityscapes semantic segmentation at 640

ModelmIoULatency (ms)Params (M)
D-FINE-seg M75.32.2416.0
YOLO26-L73.93.5617.9
YOLO26-M73.33.0814.3
D-FINE-seg S72.81.798.0

Every model fine-tuned by us on Cityscapes at 640×640, scored on the 500 val images at original resolution. Superseded by the full-resolution table above; the S row is the 1.8 ms semantic segmentation figure in the speed tiles. End-to-end latency (each framework's own pre- and postprocessing), TensorRT FP16, batch 1, RTX 5070 Ti. Protocol: cityscapes-benchmark ↗

COCO person keypoints (human pose)

ModelKeypoint APAP50AP75Person box APLatency (ms)
D-FINE-seg S65.488.071.164.22.10
YOLO26s-pose62.785.868.854.32.16

COCO val2017 at 640, official COCO AP. D-FINE-seg S trained for 40 epochs; YOLO26s-pose is the released checkpoint (300 epochs, Objects365 init). End-to-end latency (each framework's own pre- and postprocessing), TensorRT FP16, batch 1, RTX 5070 Ti. Details: D-FINE-seg changelog ↗

RadioGalaxyNET: radio galaxies and their infrared hosts

ModelBox APHost keypoint APLatency (ms)Params (M)Input
D-FINE-seg S67.170.51.813.4640
Gal-DINO (published model)53.848.211.647800

Test split, 420 images, 611 sources, both models scored with Gal-DINO's own evaluation (paper: 53.7 box AP, 48.1 host AP). Over three training seeds D-FINE-seg S scores 66.4 ± 0.7 box AP and 70.9 ± 0.4 host AP. The best published box AP is 54.5 (Gal-YOLOv8, same paper, no hosts). End-to-end latency (each framework's own pre- and postprocessing), TensorRT FP16, batch 1, RTX 5070 Ti. Code and raw predictions: radiogalaxynet-dfine-vs-galdino ↗

Models behind the gallery

  • Radio galaxies and their hosts Astronomy · keypoints
    S model · RadioGalaxyNET (EMU pilot survey) · host keypoint AP 70.5 vs 48.2 (Gal-DINO), box AP 67.1 vs 54.5 (best published) · 1.8 ms vs 11.6 ms · held-out val / test images
  • Foreign objects on an ore belt Mining · pixels
    L model · 83.1 mIoU on held-out videos · lab-scale conveyor rig
  • Great Barrier Reef survey Underwater · pixels
    X model · Coralscapes, 39 classes · 58.4 mIoU at 15 ms vs SegFormer-B5 58.2 at 39 ms
  • Street dance Dance · keypoints
    S model · 65.4 keypoint AP at 2.1 ms (YOLO26s-pose: 62.7)
  • Shibuya crossing City · boxes
    X model at 1280 px input · trained on VisDrone
  • Dump truck on a road works site Construction · outlines
    X model · COCO instance segmentation
  • Chase drone over a dry lake Off-road · outlines
    X model · COCO instance segmentation, person class only
  • Blinded by headlights Thermal · boxes
    L model · 4-channel RGB + thermal input · 93.1 mAP50 on M3FD test

Built for machines that work outside

Off-road vehicles, construction equipment, underwater robots and planetary rovers need perception that is accurate, fast and small enough to run on board. D-FINE-seg trains on your own data, exports to TensorRT, ONNX, OpenVINO and CoreML, and ships with a C++ runtime for embedded GPUs.

Coming next

  • Larger keypoint modelsMore model sizes for keypoints, coming soon
  • Whole radio surveysRadio galaxies and their hosts across the full EMU sky survey
Questions · license, comparisons, custom keypoints, training

What is D-FINE-seg?

An open-source framework and model family for real-time object detection, keypoint estimation, instance and semantic segmentation. One codebase, one config setting per task (task: detect | segment | sem_seg | kpts), five model sizes from N to X, from training to export and deployment. The detection core follows D-FINE, a real-time detector from the DETR (detection transformer) family; the segmentation and keypoint heads and the rest of the pipeline are written from scratch.

Can I use it commercially?

Yes. The code and the released COCO weights are Apache-2.0, not AGPL-3.0 like Ultralytics YOLO, and models you train on your own data are yours to ship. Only the Cityscapes semantic segmentation weights are non-commercial, inherited from the dataset.

How does it compare with YOLO26 and RF-DETR?

On Cityscapes semantic segmentation at full 2048×1024, D-FINE-seg-X reaches 84.84 mIoU, the highest of 28 models, and D-FINE-seg-L matches YOLO26x-sem at lower latency. On Cityscapes detection and instance segmentation, the S model beats the larger YOLO26-M and RF-DETR-medium on F1 and is faster. On COCO person keypoints, S scores 65.4 AP vs 62.7 for YOLO26s-pose at the same latency. All end to end with TensorRT FP16 on one RTX 5070 Ti; tables under "All the numbers".

Can it find keypoints other than human pose?

Yes. Each detected object gets K points with a presence and a visibility score, so the model learns whatever points your labels define, like the host galaxy of a radio source in the demo above. Labels can be YOLO-pose or COCO keypoints. The released weights are trained on COCO human pose and are a good starting point.

Does it work with thermal, depth or other extra channels?

Yes. Train on RGB plus one extra channel (thermal, depth or near-infrared); pretrained RGB weights still initialize the model. The "Blinded by headlights" demo reads RGB and thermal together: 93.1 mAP50 on M3FD.

How do I train it on my own data?

pip install dfine-seg, put images and labels in YOLO or COCO format, set the task and model size in the config, train. Export and benchmarking are one command each. See the quick start, the video tutorial or the Colab notebook.