Sub-part
Awaiting segmentation…
See why SAM ViT-Base predicts 3 nested masks from a single ambiguous click,
trace how adding a positive (+1) refinement point and a negative (0) exclusion point
reshapes mask IoU and area, and measure the exact 1× vision encode : N× prompt decode
amortization curve locally in your browser.
Exact geometry from facebook/sam-vit-base/config.json: the ViT-B/16 image encoder runs once
per photo into a cached [1, 256, 64, 64] tensor; the 4.90 MB mask decoder runs per prompt.
Pick a starter photo, upload/drop/paste your own, or capture a webcam snapshot. Click anywhere on the prompt photo (or run the default prompt) to inspect all 3 multimask outputs side-by-side.
Camera frames stay strictly on your device. Capture a snapshot to inspect ambiguity masks.
Camera idle.
Initialising model loader…
Click anywhere on this photo to inspect SAM's 3 nested mask outputs at that point.
Awaiting segmentation…
Awaiting segmentation…
Awaiting segmentation…
Reuses the cached ViT-B/16 embedding to run a live 3-step prompt trajectory:
Step 1: initial +1 foreground click →
Step 2: add second +1 foreground point →
Step 3: add 0 negative exclusion point.
Ready once SAM ViT-Base loads.
| Step | Prompt set | Winner tier | Predicted IoU | Area (Coverage %) | Compactness | Decode ms |
|---|---|---|---|---|---|---|
| Run the refinement trace to measure live IoU and area deltas. | ||||||
Runs 5 distinct prompt clicks against the cached [1, 256, 64, 64] ViT-B/16 embedding
(yielding cleanly with yieldToMain()) to measure real amortization speedup vs re-encoding
on every click.
Ready once SAM ViT-Base loads.