This repository holds the source code for building and training a GAN to generate celeb portraits painted in, artist, Van Gogh's painting style. We experimented with GANs in this project.
The repository has 3 sub directories, namely,
-
models
This directory, in turn, contains the sub-directory:Scripts
: This directory contains scripts to build parts of the GAN such as the generator (generator.py
) and discriminator (discriminator.py
) networks in addition to their combination i.e. the final CycleGAN architecture (CycleGAN.py
). This directory also contains a module (losses.py
) collecting all loss functions used in training the CycleGAN model.
-
notebooks
This directory contains notebook which can be used to experiment with the constructed model. -
preprocessing
This directory contains the script for collecting the painting images and celeb images in 2 differenttf.data.Datasets
objects. These objects when zipped together can be passed to themodel.fit
method, as done inmodels/Scripts/train.py
.