CSWin-UNet: Transformer UNet with Cross-Shaped Windows for Medical Image Segmentation

Xiao Liu, Peng Gao, Tao Yu, Fei Wang, Ru-Yue Yuan
7/25/2024
eess.IVcs.CV

Official code: eatbeanss/CSWin-UNet (44 stars, last commit 2024-09-19). 1 more implementation below.

Abstract

Deep learning, especially convolutional neural networks (CNNs) and Transformer architectures, have become the focus of extensive research in medical image segmentation, achieving impressive results. However, CNNs come with inductive biases that limit their effectiveness in more complex, varied segmentation scenarios. Conversely, while Transformer-based methods excel at capturing global and long-range semantic details, they suffer from high computational demands. In this study, we propose CSWin-UNet, a novel U-shaped segmentation method that incorporates the CSWin self-attention mechanism into the UNet to facilitate horizontal and vertical stripes self-attention. This method significantly enhances both computational efficiency and receptive field interactions. Additionally, our innovative decoder utilizes a content-aware reassembly operator that strategically reassembles features, guided by predicted kernels, for precise image resolution restoration. Our extensive empirical evaluations on diverse datasets, including synapse multi-organ CT, cardiac MRI, and skin lesions, demonstrate that CSWin-UNet maintains low model complexity while delivering high segmentation accuracy. Codes are available at https://github.com/eatbeanss/CSWin-UNet.

View on arXivView PDF

Code Implementations(2)

445PythonSep 19, 20242 years ago

CSWin-UNet: Transformer UNet with cross-shaped windows for medical image segmentation

60PythonMay 31, 20251 years ago

Similar Papers

Cite this paper

@article{liu2024cswinunet,
  title  = {CSWin-UNet: Transformer UNet with Cross-Shaped Windows for Medical Image Segmentation},
  author = {Xiao Liu and Peng Gao and Tao Yu and Fei Wang and Ru-Yue Yuan},
  year   = {2024},
  eprint = {2407.18070},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.18070v3}
}

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

Discussion