Pytorch implementation of our 'Domain Composition and Attention for Unseen-Domain Generalizable Medical Image Segmentation', which is accepted in MICCAI 2021.
StyleGAN was implemented by following (https://github.com/NVlabs/stylegan2-ada-pytorch), and it was trained for each domain respectively, as image_gan
.
Prepare the following files: image
, label
, image_gan
.
├── images
├── label
└── image_gan
- Modify the configuration settings in settings.ini according to your requirements.
- Run the training script:
python train_multi_fundus.py
- Not using TTFA test model.
python test_multi_fundus.py
- Using TTFA test models.
python test_multi_fundus_ttfa.py