Basics 3-Mask Ambiguity Cached ~145 ms Decode Apache-2.0

Multi-Point Refinement & 3-Mask Ambiguity Inspector

Watch how EdgeTAM resolves prompt ambiguity step by step: from a single foreground click (which outputs 3 plausible scales simultaneously), to adding a second +foreground point, to carving away background bleed with a −negative exclusion point — all reusing one cached RepViT image embedding.

Step-by-Step Prompt Refinement Lab

Select a step or run the full 3-step progression to compare all 3 ambiguity scales.

Initialise EdgeTAM above to run live multi-point refinement.

Mask 1

IoU –
Waiting for decode…

Mask 2

IoU –
Waiting for decode…

Mask 3

IoU –
Waiting for decode…

Refinement Progression Telemetry

Exact IoU, foreground coverage, and mask stability across refinement steps
Step Prompts Best Scale Best IoU Foreground % Mask IoU vs Step 1 Decode ms
Run the 3-step progression above to populate live refinement telemetry.

Under the hood: live EdgeTAM worker & ranking code

Exact ES module functions running in your browser via @huggingface/transformers@4.3.0 on onnx-community/EdgeTAM-ONNX (WebGPU fp16 / WASM fp16+fp32):

Show the code — ensureLoaded() GPU probe, fp16 / fp16+fp32 selection & epoch cancellation
Show the code — segmentPrompts() cached-embedding point/box decode & 3-mask extraction
Show the code — rankAmbiguityMasks() IoU ranking & scale labelling