Coder Social home page Coder Social logo

cyclegan-on-pytorch's Introduction

CycleGAN on Pytorch

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.

Prerequites

  • 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

How to

1. Install Python and PyTorch (from the link above or on your own way)

2. Prepare your own dataset, store it in the project folder (it should contain the images of two domains)

3. Change the dataset location part of 'train.py' code like below

...
# The lowest folder should have two sub-folders, each containing images from another domain
image_location = './data/your_dataset/train'
...

4. Run the command below on Terminal

$ python train.py

Results

1) Female to Male

FtoM_01 FtoM_02 FtoM_03 FtoM_04 FtoM_05 FtoM_06 FtoM_07 FtoM_08 FtoM_09 FtoM_10 FtoM_11 FtoM_12 FtoM_13 FtoM_14

2) Male to Female

MtoF_01 MtoF_02 MtoF_03 MtoF_04 MtoF_05 MtoF_06 MtoF_07 MtoF_08 MtoF_09 MtoF_10 MtoF_11 MtoF_12 MtoF_13 MtoF_14

cyclegan-on-pytorch's People

Contributors

bb-in-hoodie avatar

Watchers

James Cloos avatar

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.