HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Segmenter: Transformer for Semantic Segmentation

Robin Strudel Ricardo Garcia Ivan Laptev Cordelia Schmid

Segmenter: Transformer for Semantic Segmentation

Abstract

Image segmentation is often ambiguous at the level of individual image patches and requires contextual information to reach label consensus. In this paper we introduce Segmenter, a transformer model for semantic segmentation. In contrast to convolution-based methods, our approach allows to model global context already at the first layer and throughout the network. We build on the recent Vision Transformer (ViT) and extend it to semantic segmentation. To do so, we rely on the output embeddings corresponding to image patches and obtain class labels from these embeddings with a point-wise linear decoder or a mask transformer decoder. We leverage models pre-trained for image classification and show that we can fine-tune them on moderate sized datasets available for semantic segmentation. The linear decoder allows to obtain excellent results already, but the performance can be further improved by a mask transformer generating class masks. We conduct an extensive ablation study to show the impact of the different parameters, in particular the performance is better for large models and small patch sizes. Segmenter attains excellent results for semantic segmentation. It outperforms the state of the art on both ADE20K and Pascal Context datasets and is competitive on Cityscapes.

Code Repositories

isaaccorley/segmenter-pytorch
pytorch
Mentioned in GitHub
EricKani/Segmenter-Based-on-OpenMMLab
pytorch
Mentioned in GitHub
tue-mps/cts-segmenter
pytorch
Mentioned in GitHub
rstrudel/segmenter
Official
pytorch
Mentioned in GitHub
tue-mps/algm-segmenter
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
semantic-segmentation-on-ade20kSeg-B-Mask/16(MS, ViT-B)
Validation mIoU: 50.0
semantic-segmentation-on-ade20kSeg-B/8 (MS, ViT-B)
Validation mIoU: 49.61
semantic-segmentation-on-ade20kSeg-L-Mask/16 (MS)
Validation mIoU: 53.63
semantic-segmentation-on-ade20k-valSeg-B/8 (MS, ViT-B)
Pixel Accuracy: 83.37
mIoU: 49.61
semantic-segmentation-on-ade20k-valSeg-L-Mask/16 (MS, ViT-L)
mIoU: 53.63
semantic-segmentation-on-ade20k-valSeg-B-Mask/16 (MS, ViT-B)
mIoU: 50.0
semantic-segmentation-on-pascal-contextSeg-L-Mask/16
mIoU: 59.0
thermal-image-segmentation-on-rgb-t-glassSegmenter
MAE: 0.072

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