← 开源
HuCaoFighting

Swin-Unet

[ECCVW 2022] The codes for the work "Swin-Unet: Unet-like Pure Transformer for Medical Image Segmentation"

Model DevelopmentArchitecturePython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
2.42k
Star
363
Fork
+-1
本周
5
贡献者
创建于 2021-05-03 · 更新于 2026-10-15 · 今日第 8627 名
主要开发者
HuCaoFightingpooya-mohammadiMGAMZ

HuCaoFighting/Swin-Unet 排名第 8,627,有 2,420 个星标。

同类别比较

HuCaoFighting/Swin-Unet 排名第 8,627,此处有 8 个同类条目;CyberZHG/keras-bert 排名第 8,626。

同类别比较
名称排名指标
hitsz-ids/synthetic-data-generator8,608
语言:
Python
星标数:
2,440
分叉数:
396
简介:
SDG is a specialized framework designed to generate high-quality structured tabular data.
reiinakano/scikit-plot8,615
语言:
Python
星标数:
2,435
分叉数:
284
简介:
An intuitive library to add plotting functionality to scikit-learn objects.
wolny/pytorch-3dunet8,621
语言:
Jupyter Notebook
星标数:
2,425
分叉数:
559
简介:
3D U-Net model for volumetric semantic segmentation written in pytorch
CyberZHG/keras-bert8,626
语言:
Python
星标数:
2,420
分叉数:
497
简介:
Implementation of BERT that could load official pre-trained models for feature extraction and prediction
rbgirshick/rcnn8,632
语言:
Matlab
星标数:
2,416
分叉数:
969
简介:
R-CNN: Regions with Convolutional Neural Network Features
mravanelli/pytorch-kaldi8,638
语言:
Python
星标数:
2,408
分叉数:
442
简介:
pytorch-kaldi is a project for developing state-of-the-art DNN/RNN hybrid speech recognition systems. The DNN part is managed by pytorch, while feature extraction, label computation, and decoding are performed with the kaldi toolkit.
tryolabs/luminoth8,640
语言:
Python
星标数:
2,406
分叉数:
389
简介:
Deep Learning toolkit for Computer Vision.
danielegrattarola/spektral8,651
语言:
Python
星标数:
2,397
分叉数:
344
简介:
Graph Neural Networks with Keras and Tensorflow 2.
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Architecture
关键词Computer vision, Healthcare
星标数2,420
分叉数363
贡献者5
创建日期2021-05-03
更新日期2026-10-15
1 天星标数0
7 天星标数-1
排名8,627
上次排名5,225
排名变化-3,402
7 天星标排名16,900
上次 7 天星标排名16,897
7 天星标排名变化-3
总星标排名5,416
上次总星标排名5,409
总星标排名变化-7
国家Germany
README 摘录

Swin-Unet [ECCVW2022] The codes for the work "Swin-Unet: Unet-like Pure Transformer for Medical Image Segmentation"( Our paper has been accepted by ECCV 2022 MEDICAL COMPUTER VISION WORKSHOP ( We updated the Reproducibility. I hope this will help you to reproduce the results. Download pre-trained swin transformer model (Swin-T) [Get pre-trained model in this link] ( Put pretrained Swin-T into folder "pretrained_ckpt/" 2. Prepare data The datasets we used are provided by TransUnet's authors. [Get

processed data in this link] (Synapse/BTCV: and ACDC: 3. Environment Please prepare an environment with python=3. 7, and then use the command "pip install -r requirements. Train/Test Run the train script on synapse dataset. If you do not have enough GPU memory, the bacth size can be reduced to 12 or 6 to save memory. Train Test Reproducibility Codes Our trained model is stored on the Huawei cloud. The interns do not have the right to send

any files out from the internal system, so I can't share our trained model weights. Regarding how to reproduce the segmentation results presented in the paper, we discovered that different GPU types would generate different results. In our code, we carefully set the random seed, so the results should be consistent when trained multiple times on the same type of GPU. If the training does not give the same segmentation results as in the paper, it is recommended to adjust

the learning rate. And, the type of GPU we used in this work is Tesla v100. Finaly, pre-training is very important for pure transformer models. In our experiments, both the encoder and decoder are initialized with pretrained weights rather than initializing the encoder with pretrained weights only. References TransUnet SwinTransformer Citation

常见问题

记录了多少星标和分叉?

HuCaoFighting/Swin-Unet 有 2,420 个星标和 363 个分叉。

仓库排名是多少?

HuCaoFighting/Swin-Unet 排名第 8,627。

记录的语言和类别是什么?

HuCaoFighting/Swin-Unet 有 2,420 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

HuCaoFighting/Swin-Unet 与 CyberZHG/keras-bert 比较,后者排名第 8,626,有 2,420 个星标。

README

Swin-Unet

[ECCVW2022] The codes for the work "Swin-Unet: Unet-like Pure Transformer for Medical Image Segmentation"(https://arxiv.org/abs/2105.05537). Our paper has been accepted by ECCV 2022 MEDICAL COMPUTER VISION WORKSHOP (https://mcv-workshop.github.io/). We updated the Reproducibility. I hope this will help you to reproduce the results.

1. Download pre-trained swin transformer model (Swin-T)

2. Prepare data

3. Environment

  • Please prepare an environment with python=3.7, and then use the command "pip install -r requirements.txt" for the dependencies.

4. Train/Test

  • Run the train script on synapse dataset. The batch size we used is 24. If you do not have enough GPU memory, the bacth size can be reduced to 12 or 6 to save memory.

  • Train

sh train.sh 
# or 
python train.py --dataset Synapse --cfg configs/swin_tiny_patch4_window7_224_lite.yaml --root_path your DATA_DIR --max_epochs 150 --output_dir your OUT_DIR  --img_size 224 --base_lr 0.05 --batch_size 24
  • Test
sh test.sh 
# or 
python test.py --dataset Synapse --cfg configs/swin_tiny_patch4_window7_224_lite.yaml --is_saveni --volume_path your DATA_DIR --output_dir your OUT_DIR --max_epoch 150 --base_lr 0.05 --img_size 224 --batch_size 24

Reproducibility

  • Codes

Our trained model is stored on the Huawei cloud. The interns do not have the right to send any files out from the internal system, so I can't share our trained model weights. Regarding how to reproduce the segmentation results presented in the paper, we discovered that different GPU types would generate different results. In our code, we carefully set the random seed, so the results should be consistent when trained multiple times on the same type of GPU. If the training does not give the same segmentation results as in the paper, it is recommended to adjust the learning rate. And, the type of GPU we used in this work is Tesla v100. Finaly, pre-training is very important for pure transformer models. In our experiments, both the encoder and decoder are initialized with pretrained weights rather than initializing the encoder with pretrained weights only.

References

Citation

@InProceedings{swinunet,
author = {Hu Cao and Yueyue Wang and Joy Chen and Dongsheng Jiang and Xiaopeng Zhang and Qi Tian and Manning Wang},
title = {Swin-Unet: Unet-like Pure Transformer for Medical Image Segmentation},
booktitle = {Proceedings of the European Conference on Computer Vision Workshops(ECCVW)},
year = {2022}
}

@misc{cao2021swinunet,
      title={Swin-Unet: Unet-like Pure Transformer for Medical Image Segmentation}, 
      author={Hu Cao and Yueyue Wang and Joy Chen and Dongsheng Jiang and Xiaopeng Zhang and Qi Tian and Manning Wang},
      year={2021},
      eprint={2105.05537},
      archivePrefix={arXiv},
      primaryClass={eess.IV}
}
排名相邻
同类项目