ZegCLIP: Towards Adapting CLIP for Zero-shot Semantic Segmentation

By Ziqi Zhou, Yinjie Lei, Lingqiao Liu, Yifan Liu. Computer Vision and Pattern Recognition, 2022

313 citations recorded by the source corpus.

Recently, CLIP has been applied to pixel-level zero-shot learning tasks via a two-stage scheme. The general idea is to first generate class-agnostic region proposals and then feed the cropped proposal regions to CLIP to utilize its image-level zero-shot classification capability. While effective, such a scheme requires two image encoders, one for proposal generation and one for CLIP, leading to a complicated pipeline and high computational cost. In this work, we pursue a simpler-and-efficient one-stage solution that directly extends CLIP's zero-shot prediction capability from image to pixel level. Our investigation starts with a straightforward extension as our baseline that generates semantic masks by comparing the similarity between text and patch embeddings extracted from CLIP. However, such a paradigm could heavily overfit the seen classes and fail to generalize to unseen classes. To handle this issue, we propose three simple-but-effective designs and figure out that they can significantly retain the inherent zero-shot capacity of CLIP and improve pixel-level generalization ability. Incorporating those modifications leads to an efficient zero-shot semantic segmentation system called ZegCLIP. Through extensive experiments on three public benchmarks, ZegCLIP demonstrates superior performance, outperforming the state-of-the-art methods by a large margin under both “inductive” and “transductive” zero-shot settings. In addition, compared with the two-stage method, our one-stage ZegCLIP achieves a speedup of about 5 times faster during inference. We release the code at https://github.com/ZiqinZhou66/ZegCLIP.git.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition

View Paper: https://www.semanticscholar.org/paper/67db43cb6cc618c873c63fe2c83025c335b7a230

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yu-Wing Tai
  2. Martin Danelljan
  3. Chi-Keung Tang
  4. Fisher Yu
  5. Mingqiao Ye
  6. Lei Ke
  7. Yifan Liu
  8. Vladlen Koltun

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Ming-Hsuan Yang
  3. Yu-Wing Tai
  4. Martin Danelljan
  5. Dacheng Tao
  6. Chunhua Shen
  7. Trevor Darrell
  8. Philip H. S. Torr

Citations in the corpus