Skip to content

Latest commit

 

History

History
44 lines (39 loc) · 2.19 KB

README.md

File metadata and controls

44 lines (39 loc) · 2.19 KB

CoTrFuse

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

2.Prepare data

3. Environment

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

4. Train/Test

  • Run the train script on the ISIC-2017 and the COVID-QU-Ex dataset. The batch size we used is 8 and 16. If you do not have enough GPU memory, the bacth size can be reduced to 6 or 12 to save memory. For more information, contact [email protected].

  • Train

python train_ISIC.py
python train_COV.py
  • Test
python test_ISIC.py
python test_COV.py

Citation

If you find the codebase useful for your research, please cite the papers:

@article{chen2023cotrfuse,
  title={CoTrFuse: a novel framework by fusing CNN and transformer for medical image segmentation},
  author={Chen, Yuanbin and Wang, Tao and Tang, Hui and Zhao, Longxuan and Zhang, Xinlin and Tan, Tao and Gao, Qinquan and Du, Min and Tong, Tong},
  journal={Physics in Medicine \& Biology},
  volume={68},
  number={17},
  pages={175027},
  year={2023},
  publisher={IOP Publishing}
}

References