2-Stage Zero-Click Pipeline (~323.3 MB WebGPU / ~399.8 MB WASM) Stage 1: RT-DETRv2 (21 MB WASM q8, Apache-2.0) Stage 2: SAM 3 Tracker (302.3 MB WebGPU q4f16 / 378.8 MB WASM q4)

Zero-Click Instance Segmentation: RT-DETRv2 β†’ SAM 3 Tracker

Combine two independent on-device Web Workers with zero clicks: Stage 1: RT-DETRv2 (onnx-community/rtdetr_v2_r18vd-ONNX, 21 MB CPU WASM q8, reusing models/rtdetr-v2-r18vd/worker.js) discovers NMS-free COCO bounding boxes automatically, and Stage 2: SAM 3 Tracker (onnx-community/sam3-tracker-ONNX, Transformers.js 4.3.2 in ../worker.js) encodes the scene once and refines every proposed box into a crisp colored instance mask in milliseconds per object.

1. Independent Stage Loaders (~323.3 MB WebGPU Total)

Stage 1 Β· RT-DETRv2 (21 MB WASM q8)

Not initialised β€” reuses ../../rtdetr-v2-r18vd/worker.js (Apache-2.0, shared 3.7.5 runtime).

Stage 2 Β· SAM 3 Tracker (302.3 MB WebGPU q4f16 / 378.8 MB WASM q4)

Not initialised β€” uses ../worker.js (Transformers.js 4.3.2 local override).

2. Auto-Detect Boxes & Refine Pixel Masks

Select any starter scene above, drop an image here, or paste (Ctrl/⌘+V). Stage 1 finds COCO objects automatically and hands normalized boxes directly to Stage 2's cached SAM 3 decoder.

Initialising Stage 1 (RT-DETRv2) and Stage 2 (SAM 3 Tracker) loaders…

Stage 1 RT-DETRv2–
Proposals Kept–
Stage 2 Encode–
Stage 2 Masks Decode–
Mean SAM 3 IoU–
Mean Box Fill–
Stage 2 Backend–
Combined NaN Count–

Stage 1 Β· RT-DETRv2 Proposals β†’ Stage 2 Β· SAM 3 Colored Instance Masks

Scene: Sofa Cat Showing: All instances

Detected & Segmented Instances (Click to Isolate)

Per-Instance Confidence vs SAM 3 Predicted IoU

RT-DETRv2 proposal boxes refined by SAM 3 Tracker cached decoder
# Class Det Score SAM 3 IoU Decode ms Mask Area Box Fill

Show the code

Show the code β€” sam3-core.mjs: normalizeDetectorBox() (converting RT-DETRv2 pixel boxes into normalized SAM 3 prompt boxes)