- Get models in this link: R50-ViT-B_16
wget https://storage.googleapis.com/vit_models/imagenet21k/R50-ViT-B_16.npz &&
mkdir ../model/vit_checkpoint/imagenet21k &&
mv R50-ViT-B_16.npz ../model/vit_checkpoint/imagenet21k/R50-ViT-B_16.npz
The datasets we used are provided by TransUnet's authors. 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(following the TransUnet's License).
environment with python=3.7, and then run "pip install -r requirements.txt" for the dependencies.
- Run the train script on synapse dataset. The batch size we used is 24, you can reduce it to match GPU memory (please also decrease the base_lr linearly).
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.
python test.py --dataset Synapse --vit_name R50-ViT-B_16
Yuan, F., Tang, Z., Wang, C.,Huang, Q., Shi, J.: A multiple gated boosting network for multi-organ medical image segmentation. IET Image Process. 1–12 (2023). https://doi.org/10.1049/ipr2.12852