HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Mask-Adapter: The Devil is in the Masks for Open-Vocabulary Segmentation

Yongkang Li; Tianheng Cheng; Bin Feng; Wenyu Liu; Xinggang Wang

Mask-Adapter: The Devil is in the Masks for Open-Vocabulary Segmentation

Abstract

Recent open-vocabulary segmentation methods adopt mask generators to predict segmentation masks and leverage pre-trained vision-language models, e.g., CLIP, to classify these masks via mask pooling. Although these approaches show promising results, it is counterintuitive that accurate masks often fail to yield accurate classification results through pooling CLIP image embeddings within the mask regions. In this paper, we reveal the performance limitations of mask pooling and introduce Mask-Adapter, a simple yet effective method to address these challenges in open-vocabulary segmentation. Compared to directly using proposal masks, our proposed Mask-Adapter extracts semantic activation maps from proposal masks, providing richer contextual information and ensuring alignment between masks and CLIP. Additionally, we propose a mask consistency loss that encourages proposal masks with similar IoUs to obtain similar CLIP embeddings to enhance models' robustness to varying predicted masks. Mask-Adapter integrates seamlessly into open-vocabulary segmentation methods based on mask pooling in a plug-and-play manner, delivering more accurate classification results. Extensive experiments across several zero-shot benchmarks demonstrate significant performance gains for the proposed Mask-Adapter on several well-established methods. Notably, Mask-Adapter also extends effectively to SAM and achieves impressive results on several open-vocabulary segmentation datasets. Code and models are available at https://github.com/hustvl/MaskAdapter.

Code Repositories

hustvl/maskadapter
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
open-vocabulary-semantic-segmentation-on-1Mask-Adapter
mIoU: 60.4
open-vocabulary-semantic-segmentation-on-2Mask-Adapter
mIoU: 38.2
open-vocabulary-semantic-segmentation-on-3Mask-Adapter
mIoU: 16.2
open-vocabulary-semantic-segmentation-on-7Mask-Adapter
mIoU: 22.7

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp