

Refine masks from points and boxes. Generate masks across an image faster with FSD-SAM’s shared computation and selective decoding.




A shared interface. Distinct mechanisms for limited prompts, corrective interaction, and dense generation.
Candidate tokens query local appearance, mask logits, and geometry to resolve ambiguity under a single positive click.
Previous predictions inform later decisions. Bounded residual updates repair local errors while retaining prompt consistency.
An independent decoder proposes alternative masks. Added and removed regions provide evidence for evaluating each edit.
See the two-dimensional prompt grid, actual selected points and mask completion in the demo’s How FSD works tab.
Explore Point, Box, or Everything. Inspect corrective trajectories or individual automatically generated instances.
Compare curated Point and Box targets, or upload your image for prompt-free Everything segmentation in the research studio.
Upload a photograph to begin.
Original TinySAM, MobileSAM and SAM ViT-H → prompt-adaptive refinement. Compare one foreground click or one annotation box, with optional corrective clicks.
Original→ Refined · IoU (%) · the same prompt stage
| Dataset / backbone | Point prompts | Box prompts | ||||
|---|---|---|---|---|---|---|
| Initial point | +1 correction | +2 corrections | Initial box | +1 correction | +2 corrections | |
Start with a mask-center foreground click or an annotated box. Each method generates its own corrective clicks. Gains use unrounded IoUs. † Historical baselines: MobileSAM on SA-11K and SAM ViT-H on LVIS and SA-11K.
| Backbone / method | ms/image | Speedup | AR@300 (%) | ΔAR (pp) | Best IoU (%) | 1-to-1 IoU (%) | Points completed |
|---|
Speedup and ΔAR use Dense on the same backbone as the baseline. End-to-end timing covers image encoding and mask generation, with three warm-ups and three timed runs per image.
The frozen base and all six refinement modules are packaged together. Download, load, and refine.
# Download a complete checkpoint
python download_models.py --model tinysam
# Run a full COCO evaluation
python evaluate.py --model tinysam \
--checkpoint weights/tinysam_prompt_adaptive_v1.pth \
--dataset coco --data-root datasets/coco \
--output runs/tinysam-coco