alt.freeweights.vision / dfine-nano-coco-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject:

dfine-nano-coco-ONNX

Date: 2026-11-15Commit: 89df95bSigned: 2DC28CC7B26A283B ✓

Object detection model. Onnx weights, 51.6 MB in all. Published by onnx-community under Apache-2.0.

vision51.6MBdfine-nano-coco-ONNXonnxpermissive
FactsParamsnot statedSize51.6 MBFormatsonnxTaskobject detectionLicenseApache-2.0From sourcepermissive
$ fw get onnx-community/dfine-nano-coco-ONNX
# manifest sha256 4246cbd7d297… · 51.6 MB · 10 files
$ fw verify ./dfine-nano-coco-ONNX onnx-community/dfine-nano-coco-ONNX
From sourceHosted (signed)onnx-community/dfine-nano-coco-ONNXLast check: 2026-11-15 05:20 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of dfine-nano-coco.

Works with

Runs with

Ranked by fit to this model (onnx), then by GitHub stars.

Convert with

Scan with

Overview

Size
51.6 MB
Weights
4.81 MB (smallest of 6 ONNX variants)
Parameters
not stated
Formats
onnx
Task
object detection
License
Apache-2.0 (permissive)
Files
10, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: ustc-community/dfine-nano-coco

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 05:20 UTCpassed

Model card

From the publisher at commit 89df95b. Shown as plain text with links; images open at the publisher.

dfine-nano-coco (ONNX)#

This is an ONNX version of ustc-community/dfine-nano-coco. It was automatically converted and uploaded using this Hugging Face Space.

Usage with Transformers.js#

See the pipeline documentation for object-detection: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ObjectDetectionPipeline


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).

Image: 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.

Files

10 files · 51.6 MBWeights 4.81 MB (smallest of 6 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 10 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.33 KBa3d91afd3b4b63ad34011febb742db29b6dc4495a7ea28dd04b2a0aafa7d85a0
config.json6.57 KB5d21f41e25acc8bc5cc5b2da19ceaf8ee1b55ef3ba55b695d897863e74d230e9
onnx/model.onnx15.4 MBf7febe9695cd6f71120abbeb0642d3d6b6c6bcc36f0ba1d79b66d302b5860814
onnx/model_bnb4.onnx10.8 MB6cbf6e47742a87d690930871f7ed59a22d01bb2e7e1602632b9971282c1d766e
onnx/model_int8.onnx4.81 MBee34d851a43b1300b73b3a5d16c125de0aa8acc1f0ae7035ca0ee7c86885f51c
onnx/model_q4.onnx10.9 MB89be82b117a293194ee73bfa4e8d76ec1260d51f226ff6f3f07b8e5476220fb9
onnx/model_quantized.onnx4.81 MBee34d851a43b1300b73b3a5d16c125de0aa8acc1f0ae7035ca0ee7c86885f51c
onnx/model_uint8.onnx4.81 MB5dca767237986666c7ba4488c1ae839c2fe5bf0dbfa24c5238840a47eb496578
preprocessor_config.json444 Bcd38cd59999e7a95d68e487fbe5132df3d4e5c32a0836add57e6126ba0c4eaf1
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
89df95b0e8 pinned now2026-11-15 05:20 UTC10 files · 51.6 MB

Use it

$ fw get onnx-community/dfine-nano-coco-ONNX
# manifest sha256 4246cbd7d297… · 51.6 MB · 10 files
$ fw verify ./dfine-nano-coco-ONNX onnx-community/dfine-nano-coco-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/dfine-nano-coco-ONNX.json --dir ./dfine-nano-coco-ONNX $ python3 fw.py verify ./dfine-nano-coco-ONNX ./onnx-community__dfine-nano-coco-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/dfine-nano-coco-ONNX --revision 89df95b0e8575ff9879f13351bafe69bbe8e6823 --local-dir ./dfine-nano-coco-ONNX

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
a3d91afd3b4b63ad34011febb742db29b6dc4495a7ea28dd04b2a0aafa7d85a0
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject: dfine-nano-coco-ONNXDate: 2026-11-15Commit: 89df95bSigned: 2DC28CC7B26A283B ✓
Upstream
onnx-community/dfine-nano-coco-ONNX
Pinned commit
89df95b0e8575ff9879f13351bafe69bbe8e6823
Manifest
dfine-nano-coco-ONNX.json · .minisig
Manifest sha256
4246cbd7d297ab6a46716b089d375c43cb2ac098a1d5d2686294787e2e91d7b3
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:20 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/dfine-nano-coco-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/dfine-nano-coco-ONNX.json.minisig $ minisign -Vm dfine-nano-coco-ONNX.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

ustc-community/dfine-nano-coco · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/dfine-nano-coco-ONNX
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. dfine-nano-coco-ONNX.json. Provenance. Takedown history: none.
From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX