Generative Adversarial Neural Networks (GANs), UNets, and registration based methods for T1w-to-T2w image translation.
- Prepare your dataset under the directory 'data' in the CycleGAN folder and set dataset name to parameter 'image_folder' in model init function.
- Directory structure on new dataset needed for training and testing:
- data/Dataset-name/trainA
- data/Dataset-name/trainB
- data/Dataset-name/testA
- data/Dataset-name/testB
- Train a model by:
python CycleGAN/CycleGAN.py
- Generate synthetic images by following specifications under:
- CycleGAN/generate_images/ReadMe.md
Left: Input image. Middle: Synthetic images generated during training. Right: Ground truth.
Histograms show pixel value distributions for synthetic images (blue) compared to ground truth (brown).