At a glance
| Browser ONNX repo | onnx-community/sam3-tracker-ONNX (upstream facebook/sam3, Meta SAM License β public community ONNX mirror) |
|---|---|
| Task & architecture |
mask-generation Β· Sam3TrackerModel (model_type: sam3_tracker):
32-layer ViT backbone (1024-d, 16 heads, patch_size: 14, window 24,
global attention layers 7/15/23/31, RoPE) + 3-level FPN neck (256-d) + 2-layer prompt/mask decoder
|
| Backends & verified sizes |
WebGPU q4f16: 302,301,763 B (302.3 MB,
requires shader-f16) Β· CPU WASM q4 (and non-f16 WebGPU):
378,752,101 B (378.8 MB) β both verified live with 0 NaN
|
| Input & output shapes |
pixel_values [1, 3, 1008, 1008] (mean/std [0.5, 0.5, 0.5]) β
3-level FPN embeddings (288Γ288, 144Γ144, 72Γ72) β
pred_masks [1, 1, 3, 288, 288], iou_scores [1, 1, 3],
object_score_logits [1, 1]
|
| Runtime isolation |
Transformers.js 4.3.2 pinned strictly inside models/sam3-tracker-onnx/worker.js
(off-main-thread FIFO Web Worker; shared lib/webai.js stays on 3.7.5)
|
| Hardware capability | Probing WebGPU adapter and shader-f16 support⦠|
1. Interactive Point & Box Workbench
Pick a zero-person starter scene below, drop a local PNG/JPEG/WebP here, or paste from clipboard
(Ctrl/β+V). Click to add +1 foreground / β1 background points, or
switch to Box Prompt and drag a rectangle.
Initialise SAM 3 Tracker above to encode the scene into 3-level FPN embeddings and decode 3 candidate masks.
Interactive Prompt Canvas
3-Mask IoU Candidate Selector (iou_scores)
See Inside Β· Split Encoder vs Prompt/Mask Decoder
Sam3TrackerModel separates heavy image encoding from lightweight prompt decoding so
interactive clicks re-run only the ~5.4 MB decoder over cached 3-level FPN tensors.
288Β² Β· 144Β² Β· 72Β² (cached per image)
[1, 1, 3, 288, 288] (<40 ms re-prompt)
Candidate Predicted IoU Distribution
| ONNX sessions | β |
|---|---|
| FPN embedding dims | β |
| Raw pred_masks dims | β |
| Active prompt | β |
| Encode / Decode split | β |
| Image attribution | β |
Use-Case Ladder
Four dedicated interactive routes pushing SAM 3 Tracker from single-click cutouts to multi-frame tracking, prompt-ambiguity auditing, and zero-click RT-DETRv2 β SAM 3 instance segmentation.
1. Basics Β· Cutout Studio
Warm-cache auto-init interactive point & box cutout studio with live edge feathering, Color Pop, and transparent PNG download.
2. Practical Β· Multi-Frame Tracker
6-frame object tracking & privacy anonymizer queue with Pause / Resume / Cancel, optical motion propagation, and PNG Sequence ZIP export.
3. Wild Β· Ambiguity & Occlusion Audit
Compare 1-point vs multi-point vs negative-point vs tight-box prompts and 18% synthetic occlusion frames with exact mask IoU scoring.
4. Multi-Model Β· RT-DETRv2 β SAM 3
Zero-click instance segmentation: built RT-DETRv2 proposes COCO boxes automatically and feeds them straight into SAM 3's cached decoder.