A Simple Baseline for Open-Vocabulary Semantic Segmentation with Pre-trained Vision-language Model
Authors:
Preprint
Abstract
Recently, open-vocabulary image classification by vision language pre-training has demonstrated incredible achievements, that the model can classify arbitrary categories without seeing additional annotated images of that category. However, it is still unclear how to make the open-vocabulary recognition work well on broader vision problems. This paper targets open-vocabulary semantic segmentation by building it on an off-the-shelf pre-trained vision-language model, i.e., CLIP. However, semantic segmentation and the CLIP model perform on different visual granularity, that semantic segmentation processes on pixels while CLIP performs on images. To remedy the discrepancy in processing granularity, we refuse the use of the prevalent one-stage FCN based framework, and advocate a two-stage semantic segmentation framework, with the first stage extracting generalizable mask proposals and the second stage leveraging an image based CLIP model to perform open-vocabulary classification on the masked image crops which are generated in the first stage. Our experimental results show that this two-stage framework can achieve superior performance than FCN when trained only on COCO Stuff dataset and evaluated on other datasets without fine-tuning. Moreover, this simple framework also surpasses previous state-of-the-arts of zero-shot semantic segmentation by a large margin: +29.5 hIoU on the Pascal VOC 2012 dataset, and +8.9 hIoU on the COCO Stuff dataset. With its simplicity and strong performance, we hope this framework to serve as a baseline to facilitate future research. The code are made publicly available at~\url{https://github.com/MendelXu/zsseg.baseline}.Keywords
All Related Versions
This publication has 11 references indexed in Scilit:
- Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language ProcessingACM Computing Surveys, 2023
- Learning to Prompt for Vision-Language ModelsInternational Journal of Computer Vision, 2022
- From Pixel to Patch: Synthesize Context-Aware Features for Zero-Shot Semantic SegmentationIEEE Transactions on Neural Networks and Learning Systems, 2022
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows2021
- A Closer Look at Self-training for Zero-Label Semantic Segmentation2021
- Learning Unbiased Zero-Shot Semantic Segmentation Networks Via Transductive TransferIEEE Signal Processing Letters, 2020
- The Cityscapes Dataset for Semantic Urban Scene Understanding2016
- Attribute-Based Classification for Zero-Shot Visual Object CategorizationIEEE Transactions on Pattern Analysis and Machine Intelligence, 2013
- Selective Search for Object RecognitionInternational Journal of Computer Vision, 2013
- Contour Detection and Hierarchical Image SegmentationIEEE Transactions on Pattern Analysis and Machine Intelligence, 2010