This repository contains a collection of GAN Architectures implemented in Libtorch (C++).
Training is done in Libtorch (C++) but, inference functions will be available in both Python and C++.
Please note that there can be accuracy degragration when loading a model in Python.
The repo provides to environments, one for python (pytorch) and one for C++ (libtorch).
Python env will also setup a Jupyter server @ port 8888.
To build both enviroments, run the following command.
docker-compose up --build
Create an executable file of the C++ library.
docker exec -it libtorch bash
mkdir build
cd build
cmake ..
make -j
./artium --dataset path/to/dataset --trainer dcgan|cyclegan --width 64|256 --height 64|256 --batch-size 2
A simple DCGAN Implementation is provided here
Results on celebA dataset (todo)
- Input size is limited to 64 x 64.
CycleGAN Implementation is provided here
Results on monet2picture dataset (todo)
- Input size is limited to 256 x 256.