# Segmenter: Transformer for Semantic Segmentation

Source: [Segmenter: Transformer for Semantic Segmentation](<https://www.sota2.com/research/paper/68fa6aa51e209131cea296d2>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-01-04T03:26:10.287Z

Authors: Robin Strudel, Ricardo Garcia, Ivan Laptev, Cordelia Schmid

Published: 2021-05-12T13:01:44.000Z

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

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Semantic Segmentation on Pascal VOC Wood (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-pascal-voc-wood-test.md>): Semantic segmentation; Pascal VOC Wood (test); mIoU: 65.84.

- [Semantic Segmentation on Cityscapes (val) (mIoUclean, mIoUnoise)](<https://www.sota2.com/research/sota/semantic-segmentation-on-cityscapes-val-miouclean-miounoise.md>): Semantic segmentation; Cityscapes (val); mIoUclean: 78.25.

- [Future Semantic Segmentation (Mid-term) on Cityscapes (val)](<https://www.sota2.com/research/sota/future-semantic-segmentation-mid-term-on-cityscapes-val.md>): Future Semantic Segmentation (Mid-term); Cityscapes (val); mIoU (All Classes): 78.6.

- [Future Semantic Segmentation (Short-term) on Cityscapes (val)](<https://www.sota2.com/research/sota/future-semantic-segmentation-short-term-on-cityscapes-val.md>): Future Semantic Segmentation (Short-term); Cityscapes (val); mIoU (All Classes): 0.786.

- [Egocentric Hand-Object Segmentation on mini-HOI4D out-of-distribution (test)](<https://www.sota2.com/research/sota/egocentric-hand-object-segmentation-on-mini-hoi4d-out-of-distribution-test.md>): Egocentric Hand-Object Segmentation; mini-HOI4D out-of-distribution (test); IoU (Left Hand): 74.7.

- [Semantic Segmentation on Cityscapes (mIoU by Model Size)](<https://www.sota2.com/research/sota/semantic-segmentation-on-cityscapes-miou-by-model-size.md>): Semantic segmentation; Cityscapes; mIoU (Tiny): 73.48.

- [Semantic Segmentation on ACDC Snow (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-acdc-snow-test.md>): Semantic segmentation; ACDC Snow (test); mIoU: 75.22.

- [Semantic Segmentation on COCOStuff 164k (val)](<https://www.sota2.com/research/sota/semantic-segmentation-on-cocostuff-164k-val.md>): Semantic segmentation; COCOStuff 164k (val); mIoU: 47.09.

- [Semantic Segmentation on COCO-EA](<https://www.sota2.com/research/sota/semantic-segmentation-on-coco-ea.md>): Semantic segmentation; COCO-EA; mR: 92.

- [Semantic Segmentation on LQDS (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-lqds-test.md>): Semantic segmentation; LQDS (test); IoU (Water): 54.14.

- [Semantic Segmentation on Cityscapes (val) (mIoU (MS))](<https://www.sota2.com/research/sota/semantic-segmentation-on-cityscapes-val-miou-ms.md>): Semantic segmentation; Cityscapes (val); mIoU (MS): 81.3.

- [Tooth segmentation on RGB0.8K (test)](<https://www.sota2.com/research/sota/tooth-segmentation-on-rgb0-8k-test.md>): Tooth segmentation; RGB0.8K (test); mIoU: 55.

- [Tooth Segmentation on IO150K o.o.d. (test)](<https://www.sota2.com/research/sota/tooth-segmentation-on-io150k-o-o-d-test.md>): Tooth segmentation; IO150K o.o.d. (test); mIoU: 0.68.

- [Semantic Segmentation on Cityscapes (val) (mIoU, GFLOPs, Params)](<https://www.sota2.com/research/sota/semantic-segmentation-on-cityscapes-val-miou-gflops-params.md>): Semantic segmentation; Cityscapes (val); GFLOPs: 350.

- [Semantic Segmentation on Pascal-EA](<https://www.sota2.com/research/sota/semantic-segmentation-on-pascal-ea.md>): Semantic segmentation; Pascal-EA; Original Score: 82.5.

- [Semantic Segmentation on Pascal-EA (Size/Position mIoU Analysis)](<https://www.sota2.com/research/sota/semantic-segmentation-on-pascal-ea-size-position-miou-analysis.md>): Semantic segmentation; Pascal-EA; mIoU (Original): 70.87.

- [Egocentric Hand-Object Segmentation on EgoHOS out-of-domain (test)](<https://www.sota2.com/research/sota/egocentric-hand-object-segmentation-on-egohos-out-of-domain-test.md>): Egocentric Hand-Object Segmentation; EgoHOS out-of-domain (test); Left Hand IoU: 89.4.

- [Semantic Segmentation on Pascal-EA 1.0 (val)](<https://www.sota2.com/research/sota/semantic-segmentation-on-pascal-ea-1-0-val.md>): Semantic segmentation; Pascal-EA 1.0 (val); mIoU (Validation): 80.66.

- [Tooth Instance Segmentation on IO150K i.i.d. 1.0 (test)](<https://www.sota2.com/research/sota/tooth-instance-segmentation-on-io150k-i-i-d-1-0-test.md>): Tooth instance segmentation; IO150K i.i.d. 1.0 (test); T1: 78.

- [Semantic Segmentation on BDD100K (val)](<https://www.sota2.com/research/sota/semantic-segmentation-on-bdd100k-val.md>): Semantic segmentation; BDD100K (val); mIoU: 61.33.

- [Semantic Segmentation on XSeg (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-xseg-test.md>): Semantic segmentation; XSeg (test); mIoU: 63.27.

- [Semantic Segmentation on Potsdam and Vaihingen ISPRS 2D Semantic Labeling (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-potsdam-and-vaihingen-isprs-2d-semantic-labeling-test.md>): Semantic segmentation; Potsdam and Vaihingen ISPRS 2D Semantic Labeling (test); mF1 (Potsdam): 89.2.

- [Semantic Segmentation on MaSTr1325 80-20 (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-mastr1325-80-20-test.md>): Semantic segmentation; MaSTr1325 80-20 (test); mIoU: 94.8.

- [Semantic Segmentation on EgoHOS in-domain (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-egohos-in-domain-test.md>): Semantic segmentation; EgoHOS in-domain (test); Left Hand IoU: 82.2.

- [Semantic Segmentation on Cityscapes (mIoU, mFSc)](<https://www.sota2.com/research/sota/semantic-segmentation-on-cityscapes-miou-mfsc.md>): Semantic segmentation; Cityscapes; mIoU: 72.88.

- [Semantic Segmentation on KITTI 2015](<https://www.sota2.com/research/sota/semantic-segmentation-on-kitti-2015.md>): Semantic segmentation; KITTI 2015; mIoU: 61.47.

- [Semantic Segmentation on LQDS (test) using mPA](<https://www.sota2.com/research/sota/semantic-segmentation-on-lqds-test-using-mpa.md>): Semantic segmentation; LQDS (test); mPA: 53.44.

- [Semantic Segmentation on Cityscapes 18 (val)](<https://www.sota2.com/research/sota/semantic-segmentation-on-cityscapes-18-val.md>): Semantic segmentation; Cityscapes 18 (val); mIoU (small-scale): 79.1.

- [Semantic Segmentation on Pascal Context (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-pascal-context-test.md>): Semantic segmentation; Pascal Context (test); mIoU: 58.1.

- [Semantic Segmentation on vKITTI 2](<https://www.sota2.com/research/sota/semantic-segmentation-on-vkitti-2.md>): Semantic segmentation; vKITTI 2; mIoU: 83.53.

- [Glass Segmentation on RGB-T dataset Images with glass 1.0 (test)](<https://www.sota2.com/research/sota/glass-segmentation-on-rgb-t-dataset-images-with-glass-1-0-test.md>): Glass Segmentation; RGB-T dataset Images with glass 1.0 (test); MAE: 7.2.

- [Semantic Segmentation on Vaihingen](<https://www.sota2.com/research/sota/semantic-segmentation-on-vaihingen.md>): Semantic segmentation; Vaihingen; mIoU: 73.6.

- [Glass Segmentation on RGB-T dataset All images 1.0 (test)](<https://www.sota2.com/research/sota/glass-segmentation-on-rgb-t-dataset-all-images-1-0-test.md>): Glass Segmentation; RGB-T dataset All images 1.0 (test); MAE: 0.072.

- [Glass Segmentation on GSD-S](<https://www.sota2.com/research/sota/glass-segmentation-on-gsd-s.md>): Glass Segmentation; GSD-S; mIoU: 53.6.

- [Semantic Segmentation on Potsdam (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-potsdam-test.md>): Semantic segmentation; Potsdam (test); mIoU: 80.7.

- [Semantic Segmentation on Cityscapes (val) (mIoU, mIoU (+MS))](<https://www.sota2.com/research/sota/semantic-segmentation-on-cityscapes-val-miou-miou-plus-ms.md>): Semantic segmentation; Cityscapes (val); mIoU: 0.791.

- [Semantic Segmentation on PASCAL Context (val)](<https://www.sota2.com/research/sota/semantic-segmentation-on-pascal-context-val.md>): Semantic segmentation; PASCAL Context (val); mIoU: 59.

- [Glass Segmentation on RGB-T dataset Images without glass 1.0 (test)](<https://www.sota2.com/research/sota/glass-segmentation-on-rgb-t-dataset-images-without-glass-1-0-test.md>): Glass Segmentation; RGB-T dataset Images without glass 1.0 (test); MAE: 0.303.

- [Semantic Segmentation on RELLIS-3D](<https://www.sota2.com/research/sota/semantic-segmentation-on-rellis-3d.md>): Semantic segmentation; RELLIS-3D; mIoU: 0.615.

- [Semantic Segmentation on Cityscapes](<https://www.sota2.com/research/sota/semantic-segmentation-on-cityscapes.md>): Semantic segmentation; Cityscapes; mIoU: 82.2.

- [Semantic Segmentation on PASCAL VOC 2012 (val)](<https://www.sota2.com/research/sota/semantic-segmentation-on-pascal-voc-2012-val.md>): Semantic segmentation; PASCAL VOC 2012 (val); Mean IoU: 82.6.

- [Semantic Segmentation on UAVid (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-uavid-test.md>): Semantic segmentation; UAVid (test); mIoU: 58.7.

- [Semantic Segmentation on ISPRS Vaihingen (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-isprs-vaihingen-test.md>): Semantic segmentation; ISPRS Vaihingen (test); F1 Score: 70.07.

- [Semantic Segmentation on Vaihingen (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-vaihingen-test.md>): Semantic segmentation; Vaihingen (test); mIoU: 0.736.

- [Semantic Segmentation on ADE20K (mIoU)](<https://www.sota2.com/research/sota/semantic-segmentation-on-ade20k-miou.md>): Semantic segmentation; ADE20K; mIoU: 52.29.

- [Semantic Segmentation on Cityscapes (Semseg mIoU)](<https://www.sota2.com/research/sota/semantic-segmentation-on-cityscapes-semseg-miou.md>): Semantic segmentation; Cityscapes; mIoU: 79.1.

- [Semantic Segmentation on PASCAL VOC (val)](<https://www.sota2.com/research/sota/semantic-segmentation-on-pascal-voc-val.md>): Semantic segmentation; PASCAL VOC (val); mIoU: 78.7.

- [Semantic Segmentation on LoveDA (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-loveda-test.md>): Semantic segmentation; LoveDA (test); mIoU: 47.1.

- [Semantic Segmentation on ADE20K](<https://www.sota2.com/research/sota/semantic-segmentation-on-ade20k.md>): Semantic segmentation; ADE20K; mIoU: 51.8.

- [Semantic Segmentation on PASCAL VOC 2012 (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-pascal-voc-2012-test.md>): Semantic segmentation; PASCAL VOC 2012 (test); mIoU: 83.1.

- [Semantic Segmentation on Cityscapes (val) (mIoU only)](<https://www.sota2.com/research/sota/semantic-segmentation-on-cityscapes-val-miou-only.md>): Semantic segmentation; Cityscapes (val); mIoU: 79.1.

- [Semantic Segmentation on Cityscapes (val)](<https://www.sota2.com/research/sota/semantic-segmentation-on-cityscapes-val.md>): Semantic segmentation; Cityscapes (val); mIoU: 79.1.

- [Semantic Segmentation on ADE20K (val)](<https://www.sota2.com/research/sota/semantic-segmentation-on-ade20k-val.md>): Semantic segmentation; ADE20K (val); mIoU: 53.63.

- [Semantic Segmentation on Cityscapes (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-cityscapes-test.md>): Semantic segmentation; Cityscapes (test); mIoU: not recorded.

- [Semantic Segmentation on PASCAL Context 59 (mIoU)](<https://www.sota2.com/research/sota/semantic-segmentation-on-pascal-context-59-miou.md>): Semantic segmentation; Pascal Context 59; mIoU: not recorded.

- [Semantic Segmentation on COCO-Stuff 164K (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-coco-stuff-164k-test.md>): Semantic segmentation; COCO-Stuff 164K (test); mIoU: not recorded.

- [Semantic Segmentation on COCO-Stuff-10K (test)](<https://www.sota2.com/research/sota/semantic-segmentation-on-coco-stuff-10k-test.md>): Semantic segmentation; COCO-Stuff-10K (test); mIoU: not recorded.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2105.05633>)

[PDF](<https://arxiv.org/pdf/2105.05633.pdf>)

[Implementation](<https://github.com/rstrudel/segmenter>)
