This code is an implementation of the Pix2Pix model in Pytorch. It is based on the original code at https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix but unlike the original version which includes CycleGAN, this code only implements Pix2Pix.
Training:
-
config.py sets the data path and paths for saving the models and logs. It also has the training configuration that I used. Please change the paths and configuration to suit your needs.
-
In main.py, set the mode to "train"
-
Run "python main.py"
Testing:
-
In main.py, set the mode to "test"
-
Run "python main.py"