Structurally configured framework for typical generative methods with different networks and datasets.
Supervised Methods
-
✓ pix2pix
-
❏ pix2pixHD
-
❏ SPADE
Unsupervised Methods
-
❏ CycleGAN
-
❏ UNIT
-
❏ MUNIT
-
Clone this repo
git clone https://github.com/Victarry/Image-Translation-Models.git cd Image-Translation-Models
-
Install Pytorch >1.8.0 and other dependent packages.
-
For pip users, use
pip install -r requirements.txt -
For conda users, use
conda env create -f environment.yml
-
Download pix2pix dataset from http://efrosgans.eecs.berkeley.edu/pix2pix/datasets/ and extract into datasets folder.
-
Train a model
python run.py model=pix2pix datamodule=aligned dataset=night2day networks=res_conv
-
You can specify the logging dir by setting
exp_namelikeexp_name=pix2pix/exp1in above command line. -
Use tensorboard to visualize experiment results in
logs/runs
tensorboard --logdir logs/runs