HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

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

Zhihe Lu Sen He Xiatian Zhu Li Zhang Yi-Zhe Song Tao Xiang

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

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. 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.

Code Repositories

zhiheLu/CWT-for-FSS
Official
pytorch

Benchmarks

BenchmarkMethodologyMetrics
few-shot-semantic-segmentation-on-coco-20iCWT (ResNet-50)
Mean IoU: 59.5
few-shot-semantic-segmentation-on-coco-20i-1CWT (ResNet-50)
Mean IoU: 32.9
few-shot-semantic-segmentation-on-coco-20i-1CWT (ResNet-101)
Mean IoU: 32.4
few-shot-semantic-segmentation-on-coco-20i-2CWT (ResNet-50)
Mean IoU: 66.5
few-shot-semantic-segmentation-on-coco-20i-5CWT (ResNet-50)
Mean IoU: 41.3
few-shot-semantic-segmentation-on-coco-20i-5CWT (ResNet-101)
Mean IoU: 42
few-shot-semantic-segmentation-on-pascal-5i-1CWT (ResNet-101)
Mean IoU: 58
few-shot-semantic-segmentation-on-pascal-5i-1CWT (ResNet-50)
Mean IoU: 56.4
few-shot-semantic-segmentation-on-pascal-5i-5CWT (ResNet-50)
Mean IoU: 63.7
few-shot-semantic-segmentation-on-pascal-5i-5CWT (ResNet-101)
Mean IoU: 64.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