ustc-community / dfine-nano-coco

huggingface.co
Total runs: 8.3K
24-hour runs: -154
7-day runs: -63
30-day runs: 1.0K
Model's Last Updated: August 20 2025
object-detection

Introduction of dfine-nano-coco

Model Details of dfine-nano-coco

D-FINE
Overview

The D-FINE model was proposed in D-FINE: Redefine Regression Task in DETRs as Fine-grained Distribution Refinement by Yansong Peng, Hebei Li, Peixi Wu, Yueyi Zhang, Xiaoyan Sun, Feng Wu

This model was contributed by VladOS95-cyber with the help of @qubvel-hf

This is the HF transformers implementation for D-FINE

_coco -> model trained on COCO

_obj365 -> model trained on Object365

_obj2coco -> model trained on Object365 and then finetuned on COCO

Performance

D-FINE, a powerful real-time object detector that achieves outstanding localization precision by redefining the bounding box regression task in DETR models. D-FINE comprises two key components: Fine-grained Distribution Refinement (FDR) and Global Optimal Localization Self-Distillation (GO-LSD).

COCO.png

How to use
import torch
import requests

from PIL import Image
from transformers import DFineForObjectDetection, AutoImageProcessor

url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
image = Image.open(requests.get(url, stream=True).raw)

image_processor = AutoImageProcessor.from_pretrained("ustc-community/dfine-nano-coco")
model = DFineForObjectDetection.from_pretrained("ustc-community/dfine-nano-coco")

inputs = image_processor(images=image, return_tensors="pt")

with torch.no_grad():
    outputs = model(**inputs)

results = image_processor.post_process_object_detection(outputs, target_sizes=torch.tensor([image.size[::-1]]), threshold=0.3)

for result in results:
    for score, label_id, box in zip(result["scores"], result["labels"], result["boxes"]):
        score, label = score.item(), label_id.item()
        box = [round(i, 2) for i in box.tolist()]
        print(f"{model.config.id2label[label]}: {score:.2f} {box}")
Training

D-FINE is trained on COCO (Lin et al. [2014]) train2017 and validated on COCO val2017 dataset. We report the standard AP metrics (averaged over uniformly sampled IoU thresholds ranging from 0.50 − 0.95 with a step size of 0.05), and APval5000 commonly used in real scenarios.

Applications

D-FINE is ideal for real-time object detection in diverse applications such as autonomous driving , surveillance systems , robotics , and retail analytics . Its enhanced flexibility and deployment-friendly design make it suitable for both edge devices and large-scale systems + ensures high accuracy and speed in dynamic, real-world environments.

Runs of ustc-community dfine-nano-coco on huggingface.co

8.3K
Total runs
-154
24-hour runs
-66
3-day runs
-63
7-day runs
1.0K
30-day runs

More Information About dfine-nano-coco huggingface.co Model

More dfine-nano-coco license Visit here:

https://choosealicense.com/licenses/apache-2.0

dfine-nano-coco huggingface.co

dfine-nano-coco huggingface.co is an AI model on huggingface.co that provides dfine-nano-coco's model effect (), which can be used instantly with this ustc-community dfine-nano-coco model. huggingface.co supports a free trial of the dfine-nano-coco model, and also provides paid use of the dfine-nano-coco. Support call dfine-nano-coco model through api, including Node.js, Python, http.

ustc-community dfine-nano-coco online free

dfine-nano-coco huggingface.co is an online trial and call api platform, which integrates dfine-nano-coco's modeling effects, including api services, and provides a free online trial of dfine-nano-coco, you can try dfine-nano-coco online for free by clicking the link below.

ustc-community dfine-nano-coco online free url in huggingface.co:

https://huggingface.co/ustc-community/dfine-nano-coco

dfine-nano-coco install

dfine-nano-coco is an open source model from GitHub that offers a free installation service, and any user can find dfine-nano-coco on GitHub to install. At the same time, huggingface.co provides the effect of dfine-nano-coco install, users can directly use dfine-nano-coco installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

dfine-nano-coco install url in huggingface.co:

https://huggingface.co/ustc-community/dfine-nano-coco

Url of dfine-nano-coco

Provider of dfine-nano-coco huggingface.co

ustc-community
ORGANIZATIONS

Other API from ustc-community