Multi-model · 2-Stage Worker Chain 28.8 MB Total (4.48 + 24.28 MB) Apache-2.0 + MIT

Open-Vocabulary Crop Verifier & Re-Labeler (D-FINE Nano → TinyCLIP)

Stage 1 — D-FINE Nano COCO (4.48 MB q8 WASM) detects COCO boxes in ~200 ms. Stage 2 — TinyCLIP ViT-8M/16 (24.28 MB q8 WASM, reusing models/tinyclip-vit-8m-16-text-3m-yfcc15m/worker.js) verifies and re-labels every cropped object against custom open-vocabulary prompts in ~75 ms per crop — 28.76 MB total on-device.

1 · Workflow Models (28.8 MB combined WASM q8)

Stage 1 · D-FINE Nano COCO

onnx-community/dfine_n_coco-ONNX · object-detection · 4.48 MB q8 · Apache-2.0 — Waiting to initialise…

Stage 2 · TinyCLIP ViT-8M/16

onnx-community/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX · zero-shot-image-classification · 24.28 MB q8 · MIT — Waiting to initialise…

Loading starter scene…

2 · Scene Photo, COCO Boxes & Custom Open-Vocabulary Prompts

Stage 1 detect–
Stage 2 crops–
Detected boxes–
Verified crops–
NaN count–
Combined size28.8 MB q8

3 · Per-Crop TinyCLIP Open-Vocabulary Re-Label Cards

Run both stages above to inspect each object crop and its top-3 TinyCLIP prompts.

Show the code — dfine-nano.js: cropToRgb() (white-flattened padded crop extractor)
Show the code — dfine-nano.js: drawDetectionsCanvas() (COCO boxes & TinyCLIP crop tags)