8
stars
12
commits
1
repos using this model
2
linked in READMEs
Aug 23, 2026
updated
Real-time object detection, instance segmentation, and semantic segmentation β one codebase, one config flag (task: detect | segment | sem_seg), five model sizes (N -> X), and fused end-to-end deployment graphs for ONNX, TensorRT, OpenVINO, CoreML and LiteRT.
This repo hosts the released weights; the code, full benchmark tables and docs live in the GitHub repo. π Paper (arXiv:2602.23043) Β· π¬ Video tutorial Β· π§ͺ Colab Β· Apache 2.0
One frame, three tasks, one config flag.
dfine_*_obj2coco.pt (Objects365 -> COCO) for stronger fine-tuning inits.500 Cityscapes val images at original resolution, TensorRT FP16, batch 1, RTX 5070 Ti, end-to-end latency (preprocessing + forward + postprocessing). Every framework runs its own shipped inference code. Full protocol: cityscapes-benchmark.
| Task | D-FINE-seg | YOLO26 | RF-DETR |
|---|---|---|---|
| Detection | S β 0.703 F1, 2.0 ms, 10.3 M | M β 0.691, 3.0 ms, 21.8 M | m β 0.673, 10.2 ms, 33.4 M |
| Instance seg | S β 0.661 F1, 3.1 ms, 11.9 M | M β 0.599, 5.2 ms, 27.0 M | m β 0.620, 16.3 ms, 35.4 M |
| Semantic seg | M β 0.753 mIoU, 2.2 ms, 16.0 M | L β 0.739, 3.6 ms, 17.9 M | n/a |
VisDrone (detection) and TACO (instance segmentation) fine-tuning results, plus COCO-style AP and cross-format (Torch/TRT/OpenVINO/CoreML) comparisons on desktop, Intel N150 and Apple Silicon: GitHub README -> Benchmarks.
All files are PyTorch .pt; weights auto-download on first use (no manual download needed).
| Task | Files | Params (M) |
|---|---|---|
| Detection (COCO-pretrained) | dfine_{n,s,m,l,x}_coco.pt | 3.8 / 10.4 / 19.7 / 31.4 / 62.9 |
| Detection (Objects365 -> COCO) | dfine_{s,m,l,x}_obj2coco.pt | 10.4 / 19.7 / 31.4 / 62.9 |
| Instance segmentation (COCO-pretrained) | dfine_seg_{n,s,m,l,x}_coco.pt | 4.2 / 12.0 / 21.3 / 33.0 / 64.6 |
No released semantic-segmentation weights yet β fine-tune from a dfine_seg_* checkpoint (train.pretrained_model_path); the backbone, encoder and mask fuser transfer, the neck and classifier train from scratch.
pip install dfine-seg # inference + training
pip install 'dfine-seg[all]' # + every export backend, SAM3, Gradio demo
from dfine_seg import load_model, read_image
model = load_model("s") # COCO detection, weights auto-downloaded
model = load_model("s", task="segment") # COCO instance segmentation
model = load_model("path/to/model.pt") # your checkpoint β size/task/classes auto-detected
model = load_model("path/to/model.engine") # any exported artifact, picked by extension
out = model(read_image("path/to/image.jpg"))[0]
print(out["boxes"], out["scores"], [model.names[int(i)] for i in out["labels"]])
Train, export and bench from a config file:
dfine init # writes ./config.yaml (task: detect | segment | sem_seg)
dfine split && dfine train && dfine export && dfine bench
Everything else β data formats, config keys, export knobs, inference flags β is in the GitHub README.
Detection on VisDrone (aerial) Β· instance segmentation on TACO (waste).
load_model detects task, classes and input size from the weights.mosaic_augs.mosaic_prob) is not recommended for the segmentation task β lower it toward 0 if masks look wrong.@article{saakyan2026dfineseg,
title = {D-FINE-seg: Object Detection and Instance Segmentation Framework with Multi-Backend Deployment},
author = {Saakyan, Argo and Solntsev, Dmitry},
journal = {arXiv preprint arXiv:2602.23043},
year = {2026},
eprint = {2602.23043}
}
@misc{peng2024dfine,
title = {D-FINE: Redefine Regression Task in DETRs as Fine-grained Distribution Refinement},
author = {Yansong Peng and Hebei Li and Peixi Wu and Yueyi Zhang and Xiaoyan Sun and Feng Wu},
year = {2024},
eprint = {2410.13842},
archivePrefix = {arXiv},
primaryClass = {cs.CV}
}
12 commits
8
stars
12
commits
1
repos using this model
2
linked in READMEs
Aug 23, 2026
updated
Real-time object detection, instance segmentation, and semantic segmentation β one codebase, one config flag (task: detect | segment | sem_seg), five model sizes (N -> X), and fused end-to-end deployment graphs for ONNX, TensorRT, OpenVINO, CoreML and LiteRT.
This repo hosts the released weights; the code, full benchmark tables and docs live in the GitHub repo. π Paper (arXiv:2602.23043) Β· π¬ Video tutorial Β· π§ͺ Colab Β· Apache 2.0
One frame, three tasks, one config flag.
dfine_*_obj2coco.pt (Objects365 -> COCO) for stronger fine-tuning inits.500 Cityscapes val images at original resolution, TensorRT FP16, batch 1, RTX 5070 Ti, end-to-end latency (preprocessing + forward + postprocessing). Every framework runs its own shipped inference code. Full protocol: cityscapes-benchmark.
| Task | D-FINE-seg | YOLO26 | RF-DETR |
|---|---|---|---|
| Detection | S β 0.703 F1, 2.0 ms, 10.3 M | M β 0.691, 3.0 ms, 21.8 M | m β 0.673, 10.2 ms, 33.4 M |
| Instance seg | S β 0.661 F1, 3.1 ms, 11.9 M | M β 0.599, 5.2 ms, 27.0 M | m β 0.620, 16.3 ms, 35.4 M |
| Semantic seg | M β 0.753 mIoU, 2.2 ms, 16.0 M | L β 0.739, 3.6 ms, 17.9 M | n/a |
VisDrone (detection) and TACO (instance segmentation) fine-tuning results, plus COCO-style AP and cross-format (Torch/TRT/OpenVINO/CoreML) comparisons on desktop, Intel N150 and Apple Silicon: GitHub README -> Benchmarks.
All files are PyTorch .pt; weights auto-download on first use (no manual download needed).
| Task | Files | Params (M) |
|---|---|---|
| Detection (COCO-pretrained) | dfine_{n,s,m,l,x}_coco.pt | 3.8 / 10.4 / 19.7 / 31.4 / 62.9 |
| Detection (Objects365 -> COCO) | dfine_{s,m,l,x}_obj2coco.pt | 10.4 / 19.7 / 31.4 / 62.9 |
| Instance segmentation (COCO-pretrained) | dfine_seg_{n,s,m,l,x}_coco.pt | 4.2 / 12.0 / 21.3 / 33.0 / 64.6 |
No released semantic-segmentation weights yet β fine-tune from a dfine_seg_* checkpoint (train.pretrained_model_path); the backbone, encoder and mask fuser transfer, the neck and classifier train from scratch.
pip install dfine-seg # inference + training
pip install 'dfine-seg[all]' # + every export backend, SAM3, Gradio demo
from dfine_seg import load_model, read_image
model = load_model("s") # COCO detection, weights auto-downloaded
model = load_model("s", task="segment") # COCO instance segmentation
model = load_model("path/to/model.pt") # your checkpoint β size/task/classes auto-detected
model = load_model("path/to/model.engine") # any exported artifact, picked by extension
out = model(read_image("path/to/image.jpg"))[0]
print(out["boxes"], out["scores"], [model.names[int(i)] for i in out["labels"]])
Train, export and bench from a config file:
dfine init # writes ./config.yaml (task: detect | segment | sem_seg)
dfine split && dfine train && dfine export && dfine bench
Everything else β data formats, config keys, export knobs, inference flags β is in the GitHub README.
Detection on VisDrone (aerial) Β· instance segmentation on TACO (waste).
load_model detects task, classes and input size from the weights.mosaic_augs.mosaic_prob) is not recommended for the segmentation task β lower it toward 0 if masks look wrong.@article{saakyan2026dfineseg,
title = {D-FINE-seg: Object Detection and Instance Segmentation Framework with Multi-Backend Deployment},
author = {Saakyan, Argo and Solntsev, Dmitry},
journal = {arXiv preprint arXiv:2602.23043},
year = {2026},
eprint = {2602.23043}
}
@misc{peng2024dfine,
title = {D-FINE: Redefine Regression Task in DETRs as Fine-grained Distribution Refinement},
author = {Yansong Peng and Hebei Li and Peixi Wu and Yueyi Zhang and Xiaoyan Sun and Feng Wu},
year = {2024},
eprint = {2410.13842},
archivePrefix = {arXiv},
primaryClass = {cs.CV}
}
12 commits