alt.freeweights.vision / dfine-small-obj2coco
From: ustc-community <huggingface.co/ustc-community>Newsgroups: alt.freeweights.visionSubject:

dfine-small-obj2coco

Date: 2026-11-15Commit: 2b548d1Signed: 2DC28CC7B26A283B ✓

Object detection model with 10M parameters. Safetensors weights, 41.5 MB in all. Published by ustc-community under Apache-2.0.

10M params41.5MBdfine-small-obj2cocosafetensorspermissive
FactsParams10MSize41.5 MBFormatssafetensorsTaskobject detectionLicenseApache-2.0From sourcepermissive
$ fw get ustc-community/dfine-small-obj2coco
# manifest sha256 01dcb487f479… · 41.5 MB · 5 files
$ fw verify ./dfine-small-obj2coco ustc-community/dfine-small-obj2coco
From sourceHosted (signed)ustc-community/dfine-small-obj2cocoLast check: 2026-11-15 03:33 UTC

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

Works with

Runs with

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

Overview

Size
41.5 MB
Weights
41.5 MB (safetensors)
Parameters
10M
Formats
safetensors
Task
object detection
License
Apache-2.0 (permissive)
Files
5, each with a sha256
Publisher
ustc-community
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

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 03:33 UTCpassed

Model card

From the publisher at commit 2b548d1. Shown as plain text with links; images open at the publisher.

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-small-obj2coco")
model = DFineForObjectDetection.from_pretrained("ustc-community/dfine-small-obj2coco")

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

5 files · 41.5 MBWeights 41.5 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 5 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md2.82 KBf570fa2a85670fca80b1e17a8fb122e737a49003127f077a091306ddecafb0c2
config.json6.97 KBa8e3c1ecda6040f54c27834b3f79c0d05181c77a70555262228924cec2aee59e
model.safetensors41.5 MB8ff4a8332cf9507209fa443058d00752ebfede3f8cb497b91d4238369e3a57f7
preprocessor_config.json470 B7e9e2245806aa3ef068a5321f5eebee3116fa4cec560173231954ffaca930eca
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
2b548d12a7 pinned now2026-11-15 03:33 UTC5 files · 41.5 MB

Use it

$ fw get ustc-community/dfine-small-obj2coco
# manifest sha256 01dcb487f479… · 41.5 MB · 5 files
$ fw verify ./dfine-small-obj2coco ustc-community/dfine-small-obj2coco
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/ustc-community/dfine-small-obj2coco.json --dir ./dfine-small-obj2coco $ python3 fw.py verify ./dfine-small-obj2coco ./ustc-community__dfine-small-obj2coco.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ustc-community/dfine-small-obj2coco --revision 2b548d12a7623d674bb2aa2bf24022ce090b7736 --local-dir ./dfine-small-obj2coco

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
f570fa2a85670fca80b1e17a8fb122e737a49003127f077a091306ddecafb0c2
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: ustc-community <huggingface.co/ustc-community>Newsgroups: alt.freeweights.visionSubject: dfine-small-obj2cocoDate: 2026-11-15Commit: 2b548d1Signed: 2DC28CC7B26A283B ✓
Upstream
ustc-community/dfine-small-obj2coco
Pinned commit
2b548d12a7623d674bb2aa2bf24022ce090b7736
Manifest
dfine-small-obj2coco.json · .minisig
Manifest sha256
01dcb487f479eaba7c7f2321c4a0aabe92fcdbf2c3e53dbadc1c4cd866e0ce63
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:33 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/ustc-community/dfine-small-obj2coco.json $ curl -O https://freeweights.allternit.com/manifests/ustc-community/dfine-small-obj2coco.json.minisig $ minisign -Vm dfine-small-obj2coco.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

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ustc-community/dfine-small-obj2coco
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. dfine-small-obj2coco.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of dfine-small-obj2coco. Each has its own license check and page.

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