Reproduce “Segment Anything” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead and 4 more

The paper presents SAM, a prompt-driven image segmentation system that reuses an embedding across point, box, or mask prompts and predicts multiple masks for ambiguous cues. A model-assisted data engine produced SA-1B, containing 11 million images and 1.1 billion masks. With a center point, SAM exceeded RITM by 46.9 IoU points on PPDLS, but won on 16 of 23 datasets.

Key insights

  • Formulating segmentation as a 'promptable' task, where a model generates masks based on flexible inputs like points or boxes, allows a single model to adapt to diverse downstream applications without retraining.
  • A large, high-quality, and diverse segmentation dataset is crucial for training a general-purpose segmentation foundation model, and an iterative data engine leveraging model assistance can efficiently create such a dataset.
  • The Segment Anything Model (SAM) architecture, with its decoupled image encoder, prompt encoder, and lightweight mask decoder, enables real-time mask prediction and effective handling of ambiguity.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.