Skip to content
object-detection → image-classification 2 models · 2 Web Workers · 43.6 MB Total 11.33 MB + 32.32 MB WASM q8 Apache-2.0 + Apache-2.0

Objects365 Crop-and-Classify ImageNet Refiner (43.6 MB Total)

Stage 1: D-FINE Small Obj365 (onnx-community/dfine_s_obj365-ONNX, 11.33 MB q8 WASM) localises coarse Objects365 boxes (Cat, Dog, Bicycle, Pizza, Plate). Each crop is passed to Stage 2: Swin-Tiny (Xenova/swin-tiny-patch4-window7-224, 32.32 MB q8 WASM) to assign fine-grained 1,000-class ImageNet breeds, dishes, and subtypes.

1 · Workflow models (43.6 MB total)

Stage 1 · D-FINE Small Obj365 detector (11.33 MB)

Reuses ../../dfine-small-obj365/worker.js — shared Transformers.js WASM q8, 365 Objects365 classes.

Stage 2 · Swin-Tiny classifier (32.32 MB)

Uses ../worker.js — shared Transformers.js image-classification, 1,000 ImageNet classes.

2 · Detect Objects365 boxes, crop & refine with Swin-Tiny

Initialising two-stage pipeline…

No photo analysed yet.

Objects detected–
Stage 1 (D-FINE)–
Stage 2 (Swin-Tiny)–
Full-frame Top-1–
Total pipeline ms–
NaN / invalid0

Full-frame baseline vs per-crop ImageNet-1k refinements

See inside the code

Show the code — swin-core.mjs: expandCropBox() (D-FINE box → padded crop bounds)
Show the code — swin.js: Dfine365StageClient (reused ../../dfine-small-obj365/worker.js)
Show the code — worker.js: classifyImage() (Stage 2 per-crop ImageNet-1k inference)

References