SegViTv2: Exploring Efficient and Continual Semantic Segmentation with Plain Vision Transformers

Bowen Zhang, Liyang Liu, Minh Hieu Phan, Zhi Tian, Chunhua Shen +1 more
6/9/2023
cs.CV

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

Abstract

This paper investigates the capability of plain Vision Transformers (ViTs) for semantic segmentation using the encoder-decoder framework and introduces \textbf{SegViTv2}. In this study, we introduce a novel Attention-to-Mask (\atm) module to design a lightweight decoder effective for plain ViT. The proposed ATM converts the global attention map into semantic masks for high-quality segmentation results. Our decoder outperforms the popular decoder UPerNet using various ViT backbones while consuming only about $5\%$ of the computational cost. For the encoder, we address the concern of the relatively high computational cost in the ViT-based encoders and propose a \emph{Shrunk++} structure that incorporates edge-aware query-based down-sampling (EQD) and query-based upsampling (QU) modules. The Shrunk++ structure reduces the computational cost of the encoder by up to $50\%$ while maintaining competitive performance. Furthermore, we propose to adapt SegViT for continual semantic segmentation, demonstrating nearly zero forgetting of previously learned knowledge. Experiments show that our proposed SegViTv2 surpasses recent segmentation methods on three popular benchmarks including ADE20k, COCO-Stuff-10k and PASCAL-Context datasets. The code is available through the following link: \url{https://github.com/zbwxp/SegVit}.

View on arXivView PDF

Code Implementations(1)

zbwxp/SegVitOfficial100%

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

26224Shell, PythonSep 5, 20222 years agoNOASSERTION
segvit

Similar Papers

Cite this paper

@article{zhang2023segvitv,
  title  = {SegViTv2: Exploring Efficient and Continual Semantic Segmentation with Plain Vision Transformers},
  author = {Bowen Zhang and Liyang Liu and Minh Hieu Phan and Zhi Tian and Chunhua Shen and Yifan Liu},
  year   = {2023},
  eprint = {2306.06289},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.06289v2}
}

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

Discussion