SSformer: A Lightweight Transformer for Semantic Segmentation

Wentao Shi, Jing Xu, Pan Gao
8/3/2022
cs.CV
transformer-attention

Official code: shiwt03/SSformer (36 stars, Python, Apache-2.0, last commit 2022-10-19).

Abstract

It is well believed that Transformer performs better in semantic segmentation compared to convolutional neural networks. Nevertheless, the original Vision Transformer may lack of inductive biases of local neighborhoods and possess a high time complexity.

Show full abstract

Recently, Swin Transformer sets a new record in various vision tasks by using hierarchical architecture and shifted windows while being more efficient. However, as Swin Transformer is specifically designed for image classification, it may achieve suboptimal performance on dense prediction-based segmentation task. Further, simply combing Swin Transformer with existing methods would lead to the boost of model size and parameters for the final segmentation model. In this paper, we rethink the Swin Transformer for semantic segmentation, and design a lightweight yet effective transformer model, called SSformer. In this model, considering the inherent hierarchical design of Swin Transformer, we propose a decoder to aggregate information from different layers, thus obtaining both local and global attentions. Experimental results show the proposed SSformer yields comparable mIoU performance with state-of-the-art models, while maintaining a smaller model size and lower compute.

View on arXivView PDF

Code Implementations(1)

shiwt03/SSformerOfficial100%
Apache-2.0

A lightweight model for semantic segmentation

368Python, DockerfileMay 9, 20224 years agoApache-2.0

Similar Papers

Cite this paper

@article{shi2022ssformer,
  title  = {SSformer: A Lightweight Transformer for Semantic Segmentation},
  author = {Wentao Shi and Jing Xu and Pan Gao},
  year   = {2022},
  eprint = {2208.02034},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.02034}
}

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

Discussion