Reproduce “Fast 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

Xu Zhao, Wenchao Ding, Yongqi An, Yinglong Du, Tao Yu, Min Li, Ming Tang, Jinqiao Wang

Fast Segment Anything (FastSAM) proposes a CNN-based alternative to the Transformer-based Segment Anything Model (SAM), achieving 50 times faster inference (40ms vs. 2099ms) while maintaining comparable performance for prompt-guided universal image segmentation. This model re-frames the task into all-instance segmentation followed by prompt-guided selection, making real-time applications feasible.

Key insights

  • A regular CNN detector with an instance segmentation branch can achieve generalized segmentation capabilities comparable to large Transformer models, challenging the assumption that only large Transformers can perform such tasks.
  • Decoupling the 'segment anything' task into All-instance Segmentation (AIS) and Prompt-guided Selection (PGS) allows for the use of efficient CNN-based architectures instead of computationally expensive Vision Transformers.
  • Introducing 'human priors' like local connections through convolutions and receptive-field-relevant object assignment strategies can lead to significantly more efficient solutions without substantial performance degradation.

Summary by alphaXiv.

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