Open-Vocabulary SAM: Segment and Recognize Twenty-thousand Classes Interactively

Haobo Yuan, Xiangtai Li, Chong Zhou, Yining Li, Kai Chen +1 more
1/1/2024

No official code found. Best implementation: HarborYuan/ovsam (1,031 stars, last commit 2025-08-04).

Abstract

The CLIP and Segment Anything Model (SAM) are remarkable vision foundation models (VFMs). SAM excels in segmentation tasks across diverse domains, whereas CLIP is renowned for its zero-shot recognition capabilities. This paper presents an in-depth exploration of integrating these two models into a unified framework. Specifically, we introduce the Open-Vocabulary SAM, a SAM-inspired model designed for simultaneous interactive segmentation and recognition, leveraging two unique knowledge transfer modules: SAM2CLIP and CLIP2SAM. The former adapts SAM's knowledge into the CLIP via distillation and learnable transformer adapters, while the latter transfers CLIP knowledge into SAM, enhancing its recognition capabilities. Extensive experiments on various datasets and detectors show the effectiveness of Open-Vocabulary SAM in both segmentation and recognition tasks, significantly outperforming the na\"{i}ve baselines of simply combining SAM and CLIP. Furthermore, aided with image classification data training, our method can segment and recognize approximately 22,000 classes.

View on arXivView PDF

Code Implementations(1)

HarborYuan/ovsamCommunity100%

[ECCV 2024] The official code of paper "Open-Vocabulary SAM".

1,03135C++, CudaJan 5, 20241 years agoNOASSERTION

Similar Papers

Cite this paper

@article{yuan2024openvocabulary,
  title  = {Open-Vocabulary SAM: Segment and Recognize Twenty-thousand Classes Interactively},
  author = {Haobo Yuan and Xiangtai Li and Chong Zhou and Yining Li and Kai Chen and Chen Change Loy},
  year   = {2024},
  eprint = {2401.02955},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2401.02955},
  journal = {ECCV 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/2401.02955.svg)](https://codeofpaper.com/paper/2401.02955)

Discussion