Fast Segment Anything

Xu Zhao, Wenchao Ding, Yongqi An, Yinglong Du, Tao Yu +3 more
6/21/2023
cs.CVcs.AI

No official code found. Best implementation: CASIA-LMC-Lab/FastSAM (8,421 stars, AGPL-3.0, last commit 2024-07-30).

Abstract

The recently proposed segment anything model (SAM) has made a significant influence in many computer vision tasks. It is becoming a foundation step for many high-level tasks, like image segmentation, image caption, and image editing. However, its huge computation costs prevent it from wider applications in industry scenarios. The computation mainly comes from the Transformer architecture at high-resolution inputs. In this paper, we propose a speed-up alternative method for this fundamental task with comparable performance. By reformulating the task as segments-generation and prompting, we find that a regular CNN detector with an instance segmentation branch can also accomplish this task well. Specifically, we convert this task to the well-studied instance segmentation task and directly train the existing instance segmentation method using only 1/50 of the SA-1B dataset published by SAM authors. With our method, we achieve a comparable performance with the SAM method at 50 times higher run-time speed. We give sufficient experimental results to demonstrate its effectiveness. The codes and demos will be released at https://github.com/CASIA-IVA-Lab/FastSAM.

View on arXivView PDF

Code Implementations(1)

AGPL-3.0

Fast Segment Anything

8,421761Shell, PythonJun 21, 20232 years agoAGPL-3.0

Similar Papers

Cite this paper

@article{zhao2023fast,
  title  = {Fast Segment Anything},
  author = {Xu Zhao and Wenchao Ding and Yongqi An and Yinglong Du and Tao Yu and Min Li and Ming Tang and Jinqiao Wang},
  year   = {2023},
  eprint = {2306.12156},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.12156v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.12156.svg)](https://codeofpaper.com/paper/2306.12156)

Discussion