GithubHelp home page GithubHelp logo

burklight / gancedonia Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 1.0 600.52 MB

Implementation of a cycle consistency GAN for object transfiguration applied to fruit images.

Python 100.00%
gan gans neural-networks generative-adversarial-network cyclegan pytorch object-manipulation image-generation deep-learning computer-vision computer-graphics

gancedonia's Introduction

GANcedonia

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 usage of a different generator network (we use a residual network based on the good results from Leidig et al.). The latest implementation of the original authors also considers residual networks and U-nets.
  • the usage of odd weighted filters for the PatchGAN.

alt text

Authors

Dataset

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.

Prerequisites

  • PyTorch 0.3.0 or superior.
  • Python2 or Python3
  • If using an NVIDIA GPU: CUDA

Installation (Ubuntu)

  • Installation of CUDA
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
  • Installation of Pytorch 0.4 for Python 3.6
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
  • Installation of Pytorch 0.4 for Python 3.5
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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.