Open-Vocabulary Semantic Segmentation with Mask-adapted CLIP

Feng Liang, Bichen Wu, Xiaoliang Dai, Kunpeng Li, Yinan Zhao +4 more
10/9/2022
cs.CVcs.LG
lora-peft-merging

Official code: facebookresearch/ov-seg (758 stars, Jupyter Notebook, last commit 2023-10-17).

Abstract

Open-vocabulary semantic segmentation aims to segment an image into semantic regions according to text descriptions, which may not have been seen during training. Recent two-stage methods first generate class-agnostic mask proposals and then leverage pre-trained vision-language models, e.g., CLIP, to classify masked regions.

Show full abstract

We identify the performance bottleneck of this paradigm to be the pre-trained CLIP model, since it does not perform well on masked images. To address this, we propose to finetune CLIP on a collection of masked image regions and their corresponding text descriptions. We collect training data by mining an existing image-caption dataset (e.g., COCO Captions), using CLIP to match masked image regions to nouns in the image captions. Compared with the more precise and manually annotated segmentation labels with fixed classes (e.g., COCO-Stuff), we find our noisy but diverse dataset can better retain CLIP's generalization ability. Along with finetuning the entire model, we utilize the "blank" areas in masked images using a method we dub mask prompt tuning. Experiments demonstrate mask prompt tuning brings significant improvement without modifying any weights of CLIP, and it can further improve a fully finetuned model. In particular, when trained on COCO and evaluated on ADE20K-150, our best model achieves 29.6% mIoU, which is +8.5% higher than the previous state-of-the-art. For the first time, open-vocabulary generalist models match the performance of supervised specialist models in 2017 without dataset-specific adaptations.

View on arXivView PDF

Code Implementations(1)

This is the official PyTorch implementation of the paper Open-Vocabulary Semantic Segmentation with Mask-adapted CLIP.

75865Jupyter Notebook, PythonNov 2, 20223 years agoNOASSERTION

Similar Papers

Cite this paper

@article{liang2022openvocabulary,
  title  = {Open-Vocabulary Semantic Segmentation with Mask-adapted CLIP},
  author = {Feng Liang and Bichen Wu and Xiaoliang Dai and Kunpeng Li and Yinan Zhao and Hang Zhang and Peizhao Zhang and Peter Vajda and Diana Marculescu},
  year   = {2022},
  eprint = {2210.04150},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.04150}
}

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

Discussion