/ Модель

Характеристики

Лицензия
Своя лицензия
Библиотека
pytorch
Опубликована
1 мая 2026

D-FINE-seg

Поиск объектовИзображение → bounding_boxes3 профессии

D-FINE-seg — семейство моделей компьютерного зрения для обнаружения объектов, сегментации изображений и оценки ключевых точек.

1 256скачиваний за 30 дней11лайковвеса обновлены7 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

D-FINE-seg — семейство моделей компьютерного зрения от ArgoSA для обнаружения объектов, сегментации и оценки ключевых точек. В репозитории размещены веса PyTorch пяти размеров — N, S, M, L и X — для разных задач и наборов данных. Архитектура обнаружения следует подходу D-FINE с DETR-подобными запросами; для сегментации и ключевых точек используются отдельные специализированные головы.

Модели предназначены для обработки изображений и видео в реальном времени, включая сценарии автономного вождения и анализ уличных сцен. Выпущены веса обнаружения и сегментации объектов на COCO, семантической сегментации на Cityscapes и оценки ключевых точек людей на COCO. Для развертывания заявлена поддержка экспорта в ONNX, TensorRT, OpenVINO, CoreML и LiteRT; в этой карточке доступны веса PyTorch.

В README приведены результаты оценки скорости и качества, включая показатель 84,84 mIoU для размера X на Cityscapes и 65,4 AP для ключевых точек модели S на COCO. Веса описаны как начальная точка для дообучения на собственных данных; качество зависит от задачи, классов и развертывания. Лицензия указана как other; README отмечает некоммерческие условия для Cityscapes-весов и производных от них моделей.

Сценарии применения

  • обнаружение объектов на изображениях и видеопотоке
  • семантическая сегментация уличных сцен
  • выделение масок отдельных объектов
  • оценка ключевых точек человека на изображении
  • дообучение моделей компьютерного зрения на собственных размеченных данных

Ограничения

Метаданные каталога подтверждают только задачу обнаружения объектов, хотя README описывает также сегментацию и оценку ключевых точек. Представленные веса являются начальной точкой для дообучения; для Cityscapes-весов и производных от них README указывает некоммерческие условия.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

D-FINE-seg

Real-time object detection, keypoint estimation, instance and semantic segmentation - one codebase, one config flag (task: detect | segment | sem_seg | kpts), 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. See every task on real footage at dfine-seg.argoai.space. 📄 Paper (arXiv:2602.23043) · 🎬 Video tutorial · 🧪 Colab

One frame, three tasks, one config flag.

Cityscapes semantic segmentation (released)

Five semantic-segmentation checkpoints trained on Cityscapes at native 1024x2048, benchmarked against 23 official checkpoints of four other families - each through its own framework's shipped code, one validator, 500 val images, TensorRT fp16, batch 1, RTX 5070 Ti. Full 28-model table, per-class IoU and protocol: cityscapes-benchmark.

modelparams (M)mIoUpixel accengine mse2e ms
D-FINE-seg-N3.3677.9996.033.024.21
D-FINE-seg-S7.9981.1296.475.386.37
D-FINE-seg-M15.9581.4196.557.428.26
D-FINE-seg-L24.9783.8096.938.989.77
D-FINE-seg-X56.384.8497.1014.1814.64
YOLO26x-sem40.1383.5896.7910.3713.58
EfficientViT-L252.6183.2096.879.5619.87
Mask2Former-Swin-L215.4683.3396.9164.5194.07
SegFormer-B584.6181.4196.6238.8142.12

D-FINE-seg-X: 84.84 mIoU at 14.6 ms end-to-end, the highest mIoU of the 28 models - +1.26 mIoU over YOLO26-x, and +1.5 mIoU over Mask2Former Swin-L with 6.4x lower latency and a quarter of the parameters. D-FINE-seg-L matches or beats YOLO26-x on every axis.

Load with one line (weights auto-download):

model = load_model("x", task="sem_seg")   # names and 1024x2048 input size come from the checkpoint

They are also a strong init for your own driving/outdoor data: point train.pretrained_model_path at one with a different label_to_name and the class heads re-initialize while the rest keeps the Cityscapes training (N initialized from COCO, S/M/L/X from obj2coco). A model fine-tuned from them is still derived from Cityscapes and inherits its non-commercial terms (see License) - for commercial use, start from the COCO / obj2coco weights instead.

COCO person keypoints (released)

dfine_kpts_s_coco.pt: the S model trained on COCO person keypoints (17 points). COCO val2017 at 640, official COCO AP; end-to-end latency with each framework's own pipeline, TensorRT fp16, batch 1, RTX 5070 Ti.

modelkeypoint APAP50 / AP75person box APe2e ms
D-FINE-seg S (40 epochs)65.488.0 / 71.164.22.10
YOLO26s-pose (released, 300 epochs, Objects365 init)62.785.8 / 68.854.32.16
model = load_model("s", task="kpts")      # out["kpts"]: [N, 17, 4] = x, y, presence, visible

The keypoint head is not tied to human pose: every detection predicts K points with a presence and a visibility score, so it learns whatever points your labels define (YOLO-pose or COCO keypoint labels). Use these weights as the init for your own person keypoint data, or start from the detection weights for other objects. Larger sizes are coming.

Highlights

  • Four tasks, one model family - DETR-style detection (queries -> boxes), plus a lightweight Mask-DINO-style mask head for instance segmentation, a query-free head for semantic segmentation, and a keypoint head that predicts K points per detection (refined by a keypoint decoder, one token per point).
  • Five sizes (N/S/M/L/X) - pretrained weights for every task: detection on COCO (plain and Objects365-pretrained), COCO instance segmentation, Cityscapes semantic segmentation, COCO person keypoints (S for now).
  • Multi-backend deployment - one export pipeline produces ONNX / TensorRT / OpenVINO / CoreML / LiteRT graphs with the postprocessor fused; INT8 quantization (OpenVINO, CoreML, LiteRT); ByteTrack tracking; SAM3 auto-labeling; Gradio demo.
  • Fine-tuning - on 640 Cityscapes, beats Ultralytics YOLO26 and RF-DETR on detection & instance-segmentation F1; on TACO and VisDrone, beats YOLO26 across all sizes (TensorRT FP16, end-to-end protocol).
  • Not a fork - the detection core follows the D-FINE paper; segmentation heads, training, export and inference were reimplemented from scratch, with the mask-head design following the Mask DINO paradigm.

Checkpoints

All files are PyTorch .pt; weights auto-download on first use (no manual download needed).

TaskFilesParams (M)
Detection (COCO-pretrained)dfine_{n,s,m,l,x}_coco.pt3.8 / 10.4 / 19.7 / 31.4 / 62.9
Detection (Objects365 -> COCO)dfine_{s,m,l,x}_obj2coco.pt10.4 / 19.7 / 31.4 / 62.9
Instance segmentation (COCO-pretrained)dfine_seg_{n,s,m,l,x}_coco.pt4.2 / 12.0 / 21.3 / 33.0 / 64.6
Semantic segmentation (Cityscapes)dfine_sem_{n,s,m,l,x}_cityscapes.pt3.36 / 7.99 / 15.95 / 24.97 / 56.3
Keypoints (COCO person, 17 points)dfine_kpts_s_coco.pt13.5

Usage

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("x", task="sem_seg")        # Cityscapes semantic segmentation
model = load_model("s", task="kpts")           # COCO person keypoints (17 points)
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 | kpts)
dfine split && dfine train && dfine export && dfine bench

Everything else - data formats, config keys, export knobs, inference flags - is in the GitHub README.

Example outputs

Detection on VisDrone (aerial) · instance segmentation on TACO (waste).

Architecture

Notes

  • Weights are an init, not a final model - the COCO checkpoints cover detection, instance segmentation and person keypoints, the Cityscapes ones semantic segmentation; fine-tune on your own data for the task and classes you need. load_model detects task, classes and input size from the weights.
  • TensorRT engines are GPU-specific - re-export on the target GPU. INT8 quantization shows a noticeable F1 drop on segmentation; FP16 is the recommended trade-off.
  • Mosaic augmentation (mosaic_augs.mosaic_prob) is not recommended for the segmentation task - lower it toward 0 if masks look wrong.
  • Older fine-tuning benchmarks (640 Cityscapes detection/instance segmentation, VisDrone, TACO, COCO-style APs, cross-format latency): GitHub README -> Benchmarks.

License

  • The code and the COCO-pretrained checkpoints (detection, instance segmentation, person keypoints) are Apache-2.0.
  • The Cityscapes semantic-segmentation checkpoints (dfine_sem_*_cityscapes.pt) are derivative works of the Cityscapes dataset and inherit its terms of use: non-commercial purposes only (academic research, teaching, scientific publications, personal experimentation), no commercial gain. Train on your own data and the resulting model is yours to ship - the code stays Apache-2.0 (no AGPL).

Citation

@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}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · pytorch · object-detection

Нельзя запустить

Архитектура ? неизвестна transformers в образе рантайма.

Ревизия весов
79572c4

0 моделей