At a glance
| Upstream model | ustc-community/dfine-nano-coco (ICLR 2025 D-FINE: Fine-grained Distribution Refinement) |
|---|---|
| Loaded ONNX repo | onnx-community/dfine_n_coco-ONNX |
| Pipeline task | object-detection |
| Architecture & FDR |
DFineForObjectDetection (d_fine, hgnet_v2
backbone, d_model: 128, decoder_layers: 3,
max_num_bins: 32, RTDetrImageProcessor 640Γ640, 300 queries) Β· 80 COCO classes
|
| Backend & size |
CPU WASM q8 default β 4.48 MB (4,477,982 B
onnx/model_quantized.onnx); optional fp16 (7.87 MB) and
fp32 (15.26 MB) on Basics. Runs in every browser, zero GPU required.
|
| License | Apache-2.0 (code & weights; trained on MS-COCO 2017) |
Interactive 80-Class Real-Time Detector
Pick a sample photo, drop/paste your own image, or snap a live camera frame. Hover or click any bounding box on the canvas (or use the class filter chips) to inspect exact COCO labels, confidence scores, pixel coordinates, and frame area.
Camera frames stay 100% on-device. Click Capture & Detect to run D-FINE Nano on a snapshot.
Initialising model loaderβ¦
| # | COCO Class | Group | Score | Box [xmin, ymin, xmax, ymax] | Area % | Inspect |
|---|---|---|---|---|---|---|
| Prepare D-FINE Nano COCO above to run 80-class detection. | ||||||
See inside D-FINE Nano: Why 4.48 MB still localizes sharply
Instead of regressing box offsets as single point estimates, D-FINE predicts a 32-bin probability distribution per edge across 3 decoder layers and iteratively refines residuals via Fine-Grained Distribution Refinement (FDR) distilled from a larger teacher (GO-LSD). Explore the live worker and post-processing functions executing in your browser below:
Show the code β worker.js: ensureLoaded() (shared 3.7.5 WASM q8 + epoch guards)
Show the code β worker.js: detectImage() (80-class inference + NaN/None guards)
Show the code β dfine-nano-core.mjs: postProcessDetections() (clamping & IoU dedup)
Why it matters
At 4.48 MB quantized on CPU WASM and ~200 ms latency, D-FINE Nano COCO is smaller than many hero web images yet delivers full 80-class localization:
- Zero-server privacy triage β scan customer uploads, receipts, or inspection photos before anything leaves the device.
- Interactive smart cropper β detect people, vehicles, or products instantly to frame thumbnails or trigger downstream classifiers.
- Offline field cataloguing β audit inventory rolls in low-connectivity environments with formula-safe CSV/COCO exports.
Explore the 5-route use-case ladder
Basics: FDR Sweep & Precision
Sweep confidence 0.15β0.85, inspect area & aspect histograms, audit IoU overlaps, and compare q8 vs fp16/fp32 live.
Practical: Batch COCO Cataloguer
Upload multiple photos, run a cancellable sequential FIFO batch, tally COCO classes, and export formula-safe CSV & COCO JSON.
Wild: Resolution & Stress Lab
Measure 320px vs 480px vs 640px latency/recall curves and test low-light, blur, mirror-flip, and center-crop robustness.
Multi-model: D-FINE Nano β TinyCLIP
Chain 4.48 MB D-FINE Nano + 24.28 MB TinyCLIP (28.8 MB total) to detect COCO boxes and re-label every crop with custom prompts.