SegViT: Semantic Segmentation with Plain Vision Transformers

Bowen Zhang, Zhi Tian, Quan Tang, Xiangxiang Chu, Xiaolin Wei +2 more
10/12/2022
cs.CV
transformer-attention

Official code: zbwxp/SegVit (262 stars, Python, last commit 2023-12-29).

Abstract

We explore the capability of plain Vision Transformers (ViTs) for semantic segmentation and propose the SegVit. Previous ViT-based segmentation networks usually learn a pixel-level representation from the output of the ViT.

Show full abstract

Differently, we make use of the fundamental component -- attention mechanism, to generate masks for semantic segmentation. Specifically, we propose the Attention-to-Mask (ATM) module, in which the similarity maps between a set of learnable class tokens and the spatial feature maps are transferred to the segmentation masks. Experiments show that our proposed SegVit using the ATM module outperforms its counterparts using the plain ViT backbone on the ADE20K dataset and achieves new state-of-the-art performance on COCO-Stuff-10K and PASCAL-Context datasets. Furthermore, to reduce the computational cost of the ViT backbone, we propose query-based down-sampling (QD) and query-based up-sampling (QU) to build a Shrunk structure. With the proposed Shrunk structure, the model can save up to $40\%$ computations while maintaining competitive performance.

View on arXivView PDF

Code Implementations(1)

zbwxp/SegVitOfficial100%

Official Pytorch Implementation of SegViT: Semantic Segmentation with Plain Vision Transformers

26223Python, ShellSep 5, 20222 years agoNOASSERTION
segvit

Similar Papers

Cite this paper

@article{zhang2022segvit,
  title  = {SegViT: Semantic Segmentation with Plain Vision Transformers},
  author = {Bowen Zhang and Zhi Tian and Quan Tang and Xiangxiang Chu and Xiaolin Wei and Chunhua Shen and Yifan Liu},
  year   = {2022},
  eprint = {2210.05844},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.05844}
}

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

Discussion