VRP-SAM: SAM with Visual Reference Prompt

Yanpeng Sun, Jiahui Chen, Shan Zhang, Xinyu Zhang, Qiang Chen +4 more
2/1/2024

No official code found. Best implementation: syp2ysy/VRP-SAM (189 stars, MIT, last commit 2024-09-27).

Abstract

In this paper, we propose a novel Visual Reference Prompt (VRP) encoder that empowers the Segment Any-thing Model (SAM) to utilize annotated reference images as prompts for segmentation, creating the VRP-SAM model. In essence, VRP-SAM can utilize annotated reference images to comprehend specific objects and perform segmen-tation of specific objects in target image. It is note that the VRP encoder can support a variety of annotation for-mats for reference images, including point, box, scribble, and mask. VRP-SAM achieves a breakthrough within the SAM framework by extending its versatility and applicabil-ity while preserving SAM's inherent strengths, thus enhancing user-friendliness. To enhance the generalization abil-ity of VRP-SAM, the VRP encoder adopts a meta-learning strategy. To validate the effectiveness of VRP-SAM, we con-ducted extensive empirical studies on the Pascal and COCO datasets. Remarkably, VRP-SAM achieved state-of-the-art performance in visual reference segmentation with mini-mal learnable parameters. Furthermore, VRP-SAM demon-strates strong generalization capabilities, allowing it to per-form segmentation of unseen objects and enabling cross-domain segmentation. The source code and models will be available at https://github.com/syp2ysy/VRP-SAM

View on arXivView PDF

Code Implementations(1)

syp2ysy/VRP-SAMCommunity63%
MIT

[CVPR 2024] Official implementation of "VRP-SAM: SAM with Visual Reference Prompt"

18922Shell, PythonMar 14, 20242 years agoMIT

Cite this paper

@article{sun2024vrpsam,
  title  = {VRP-SAM: SAM with Visual Reference Prompt},
  author = {Yanpeng Sun and Jiahui Chen and Shan Zhang and Xinyu Zhang and Qiang Chen and Gang Zhang and Errui Ding and Jingdong Wang and Zechao Li},
  year   = {2024},
  eprint = {2402.17726},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2402.17726},
  journal = {CVPR 2024 2024}
}

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

Discussion