Promptable segmentation (SAM-style)
What it is
A huge image encoder with a prompt-conditioned mask decoder that segments anything you point at or box.
When to use it
Annotation tooling, zero-shot segmentation, and as a frozen preprocessing stage.
Caveats
It segments whatever the prompt points at but does not say what the object is, and an ambiguous prompt can return the part, the object or the group. Quality drops on fine structures, low-contrast images and specialised domains such as medical imaging, and the image encoder is heavy.
Key ideas
- Takes points, boxes or masks as prompts and returns a mask for the indicated object
- A heavy image encoder runs once; a light decoder answers each prompt quickly
- Trained on a very large mask dataset, so it works zero-shot on new images
- Returns several candidate masks when a prompt is ambiguous
Related architectures
Original paper
Segment Anything (2023, arXiv)