Implementation of CycleGAN on Pytorch. The model learns how to convert an image of domain A to an image of domain B and vice versa. On this project, CelebA dataset has been used as the main dataset. The model has learned how to translate a female image to a male image and vice versa.
- Python 3.6
- PyTorch 0.2.0 (PyTorch is currently available only on Linux and OSX)
- The code has been written on Linux (ubuntu 16.04 LTS) system
- CPU or CUDA-available-GPU
2. Prepare your own dataset, store it in the project folder (it should contain the images of two domains)
...
# The lowest folder should have two sub-folders, each containing images from another domain
image_location = './data/your_dataset/train'
...
$ python train.py