HarborYuan/ovsam

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

What it solves

Open-Vocabulary SAM (OVSAM) addresses the limitation of the Segment Anything Model (SAM) by enabling it to not only segment objects but also recognize them across thousands of classes in an open-vocabulary setting. It allows for simultaneous interactive segmentation and recognition.

How it works

OVSAM uses two knowledge transfer modules to combine the strengths of SAM and CLIP:

  • SAM2CLIP: Adapts SAM's segmentation knowledge into CLIP via distillation and learnable transformer adapters.
  • CLIP2SAM: Transfers CLIP's recognition capabilities into SAM to enhance its ability to identify objects.

Who it’s for

Computer vision researchers and developers working on interactive image segmentation and open-vocabulary object recognition.

Highlights

  • Open-Vocabulary Recognition: Capable of recognizing and segmenting twenty-thousand classes interactively.
  • Knowledge Transfer: Uses a dual-module approach to bridge the gap between segmentation and recognition models.
  • Conda-based Installation: Provides a detailed setup guide for PyTorch and OpenMMLab packages.
  • RWKV-SAM Integration: Includes a related project exploring high-efficiency alternatives to the standard SAM architecture.

Related

  • Project
  • Project
  • Project
  • Project