Implementation of a cycle consistency GAN for object transfiguration applied to fruit images.
In this repository you will find a cycle consistency GAN prepared to perform object transfiguration between different fruits.
This PyTorch implementation is based on the CycleGAN original paper from Jun-Yan Zhu, Taesung Park et al.
The main differences with the original paper are:
The dataset used for this repository is the Kaggle Fruits 360 presented by Muresan and Oltean.
The images from this dataset are placed randomly over the textures in the textures folder with random scaling.
wget developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.1.85-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1604_9.1.85-1_amd64.deb
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda
sudo -H pip3 install http://download.pytorch.org/whl/cu91/torch-0.4.0-cp36-cp36m-linux_x86_64.whl
sudo -H pip3 install torchvision
sudo -H pip3 install http://download.pytorch.org/whl/cu91/torch-0.4.0-cp36-cp35m-linux_x86_64.whl
sudo -H pip3 install torchvision