Stage 1 · SlimSAM-77 (25.44 MB WASM)
Awaiting Stage 1 inference…
Stage 1: SlimSAM-77 (Xenova/slimsam-77-uniform, 77%-pruned ViT-B reusing
../slimsam-segment-anything/worker.js, 25.44 MB active WASM q8/fp32 transfer;
~40 MB catalogue entry) runs in parallel with Stage 2: SAM ViT-Base
(Xenova/sam-vit-base, full 12-layer ViT-B/16, 105.99 MB WASM q8;
131.43 MB actual combined download / ~146 MB budget) on the exact same click prompts to
measure live Mask IoU, Dice (F1), ±2 px Boundary Dice,
and encode/decode speedup.
Reuses ../../slimsam-segment-anything/worker.js — pruned ViT-B encoder (q8) + fp32 decoder.
Uses ../worker.js — full 12-layer ViT-B/16 encoder (q8) + 2-way mask decoder (q8).
Camera frames stay strictly on your device. Capture a snapshot to compare both SAM models.
Camera idle.
Initialising two-model comparison…
Click anywhere on the image to run identical coordinates through both SAM models.
Awaiting Stage 1 inference…
Awaiting Stage 2 inference…
| Photo & prompts | SlimSAM Pred IoU | SAM Base Pred IoU | Mask IoU | Mask Dice | Boundary Dice | Encode (Slim/Base) |
|---|---|---|---|---|---|---|
| Run both stages on a photo to record Mask IoU and Boundary Dice metrics. | ||||||