Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Segmenter: Transformer for Semantic Segmentation

About

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.

Robin Strudel, Ricardo Garcia, Ivan Laptev, Cordelia Schmid• 2021

Related benchmarks

TaskDatasetResultRank
Semantic segmentationADE20K (val)
mIoU53.63
2731
Semantic segmentationCityscapes (test)--
1145
Semantic segmentationADE20K
mIoU51.8
936
Semantic segmentationCityscapes
mIoU82.2
578
Semantic segmentationCityscapes (val)
mIoU79.1
572
Semantic segmentationPASCAL VOC (val)
mIoU78.7
338
Semantic segmentationCityscapes (val)
mIoU79.1
332
Semantic segmentationPASCAL Context (val)
mIoU59
323
Semantic segmentationPascal Context (test)
mIoU58.1
176
Semantic segmentationPotsdam (test)
mIoU80.7
104
Showing 10 of 45 rows

Other info

Code

Follow for update