Skip to content

BinYCn/CoTrFuse

Repository files navigation

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 904363330@qq.com.

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages