Skip to content

CycleGAN used for multimodal translation in medical imaging

License

Notifications You must be signed in to change notification settings

dongliangcao/MultimodalGAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MultimodalGAN

CycleGAN used for multimodal MRI image translation

Requirements

pytorch>=1.5, torchvision, PIL, SimpleITK

Usage

Prepare Data

downloand data from here and unzip it outside the code folder

Train

python main.py --mode train

optional (visualize training process in TensorBoard): tensorbooard --logdir logs/

Test

python main.py --mode test

Optional config

--data_root: data root stores all training dataset and test dataset (e.g. trainT1, trainT2, testT1, testT2...)

--model_root: pre-trained G_A2B (generator modal A -> modal B) model used for test

--epochs: number of epochs to train

--output_root: output root stores all test outputs

--ssim: use ssim as reconstruction loss

About

CycleGAN used for multimodal translation in medical imaging

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages