Simpler is Better: Few-shot Semantic Segmentation with Classifier Weight Transformer

Zhihe Lu, Sen He, Xiatian Zhu, Li Zhang, Yi-Zhe Song +1 more
8/6/2021
cs.CV
transformer-attention

Official code: zhiheLu/CWT-for-FSS (133 stars, Python, GPL-3.0, last commit 2022-01-24).

Abstract

A few-shot semantic segmentation model is typically composed of a CNN encoder, a CNN decoder and a simple classifier (separating foreground and background pixels). Most existing methods meta-learn all three model components for fast adaptation to a new class.

Show full abstract

However, given that as few as a single support set image is available, effective model adaption of all three components to the new class is extremely challenging. In this work we propose to simplify the meta-learning task by focusing solely on the simplest component, the classifier, whilst leaving the encoder and decoder to pre-training. We hypothesize that if we pre-train an off-the-shelf segmentation model over a set of diverse training classes with sufficient annotations, the encoder and decoder can capture rich discriminative features applicable for any unseen classes, rendering the subsequent meta-learning stage unnecessary. For the classifier meta-learning, we introduce a Classifier Weight Transformer (CWT) designed to dynamically adapt the supportset trained classifier's weights to each query image in an inductive way. Extensive experiments on two standard benchmarks show that despite its simplicity, our method outperforms the state-of-the-art alternatives, often by a large margin.Code is available on https://github.com/zhiheLu/CWT-for-FSS.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Official code for "Simpler is Better: Few-shot Semantic Segmentation with Classifier Weight Transformer. ICCV2021".

13325Python, ShellAug 1, 20214 years agoGPL-3.0

Similar Papers

Cite this paper

@article{lu2021simpler,
  title  = {Simpler is Better: Few-shot Semantic Segmentation with Classifier Weight Transformer},
  author = {Zhihe Lu and Sen He and Xiatian Zhu and Li Zhang and Yi-Zhe Song and Tao Xiang},
  year   = {2021},
  eprint = {2108.03032},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.03032}
}

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

Discussion