Learning to Prompt Segment Anything Models

Jiaxing Huang, Kai Jiang, Jingyi Zhang, Han Qiu, Lewei Lu +2 more
1/9/2024
cs.CV

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

Segment Anything Models (SAMs) like SEEM and SAM have demonstrated great potential in learning to segment anything. The core design of SAMs lies with Promptable Segmentation, which takes a handcrafted prompt as input and returns the expected segmentation mask. SAMs work with two types of prompts including spatial prompts (e.g., points) and semantic prompts (e.g., texts), which work together to prompt SAMs to segment anything on downstream datasets. Despite the important role of prompts, how to acquire suitable prompts for SAMs is largely under-explored. In this work, we examine the architecture of SAMs and identify two challenges for learning effective prompts for SAMs. To this end, we propose spatial-semantic prompt learning (SSPrompt) that learns effective semantic and spatial prompts for better SAMs. Specifically, SSPrompt introduces spatial prompt learning and semantic prompt learning, which optimize spatial prompts and semantic prompts directly over the embedding space and selectively leverage the knowledge encoded in pre-trained prompt encoders. Extensive experiments show that SSPrompt achieves superior image segmentation performance consistently across multiple widely adopted datasets.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{huang2024learning,
  title  = {Learning to Prompt Segment Anything Models},
  author = {Jiaxing Huang and Kai Jiang and Jingyi Zhang and Han Qiu and Lewei Lu and Shijian Lu and Eric Xing},
  year   = {2024},
  eprint = {2401.04651},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.04651v1}
}

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/2401.04651.svg)](https://codeofpaper.com/paper/2401.04651)

Discussion