https://github.com/alexander-jing/transunet
This repository includes the official project of TransUNet, presented in our paper: TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation.
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.8%) to scientific vocabulary
Repository
This repository includes the official project of TransUNet, presented in our paper: TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation.
Basic Info
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
TransUNet
This repo holds code for TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation
Usage
1. Download Google pre-trained ViT models
- Get models in this link: R50-ViT-B16, ViT-B16, ViT-L16... ```bash wget https://storage.googleapis.com/vitmodels/imagenet21k/{MODELNAME}.npz && mkdir ../model/vitcheckpoint/imagenet21k && mv {MODELNAME}.npz ../model/vitcheckpoint/imagenet21k/{MODEL_NAME}.npz ```
2. Prepare data
Please go to "./datasets/README.md" for details, or please send an Email to jienengchen01 AT gmail.com to request the preprocessed data. If you would like to use the preprocessed data, please use it for research purposes and do not redistribute it.
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 can be reduced to 12 or 6 to save memory (please also decrease the base_lr linearly), and both can reach similar performance.
bash
CUDA_VISIBLE_DEVICES=0 python train.py --dataset Synapse --vit_name R50-ViT-B_16
- Run the test script on synapse dataset. It supports testing for both 2D images and 3D volumes.
bash
python test.py --dataset Synapse --vit_name R50-ViT-B_16
Reference
Citations
bibtex
@article{chen2021transunet,
title={TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation},
author={Chen, Jieneng and Lu, Yongyi and Yu, Qihang and Luo, Xiangde and Adeli, Ehsan and Wang, Yan and Lu, Le and Yuille, Alan L., and Zhou, Yuyin},
journal={arXiv preprint arXiv:2102.04306},
year={2021}
}
Owner
- Name: Jing
- Login: Alexander-Jing
- Kind: user
- Location: Beijing
- Company: CASIA
- Repositories: 2
- Profile: https://github.com/Alexander-Jing
UCAS
GitHub Events
Total
Last Year
Dependencies
- SimpleITK *
- h5py *
- medpy *
- ml-collections *
- numpy *
- scipy *
- tensorboard *
- tensorboardX *
- torch ==1.4.0
- torchvision ==0.5.0
- tqdm *