Skip to content

multi-model · 2 Web Workers · 14.60 MB total · Apache-2.0 + Apache-2.0

Detect & Refine: ObjectDetector → MobileNetV3-Small

Stage 1 runs MediaPipe ObjectDetector (4.60 MB INT8) to localize coarse 80-class COCO boxes. Stage 2 crops each box and feeds it to the built MobileNetV3-Small worker (10.0 MB FP32, 1,000 ImageNet classes) to name exact breeds, gear, and fine-grained subtypes — 100% locally.

Two-stage crop classification workspace

Loading curated photo…

Stage 1 boxes–
Stage 1 latency–
Stage 2 crops–
Stage 2 latency–
Combined size14.60 MB

Stage 2 fine-grained ImageNet-1k crop predictions

Run Detect & classify crops once both local models are ready.

Local pipeline models (14.60 MB total)

Stage 1 · MediaPipe ObjectDetector (4.60 MB INT8)

Classic Worker ../worker.js — 80 COCO classes, EfficientDet-Lite0 INT8.

Stage 2 · MobileNetV3-Small (10.0 MB FP32)

Reuses ../../mobilenetv3-small-100-lamb-in1k/worker.js — 1,000 ImageNet classes.

Inspect the two-stage handoff

</> Worker bridge & cropper client (object-detector-client.js) View source