GithubHelp home page GithubHelp logo

jdc08161063 / tensorflow-cyclegan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eyyub/tensorflow-cyclegan

0.0 2.0 0.0 5.25 MB

Lightweight CycleGAN tensorflow implementation ๐Ÿฆ <-> ๐Ÿ†

Python 100.00%

tensorflow-cyclegan's Introduction

tensorflow-cyclegan

A lightweight CycleGAN tensorflow implementation.

If you plan to use a CycleGAN model for real-world purposes, you should use the Torch CycleGAN implementation.

@eyyub_s

Some examples

lion2leopard (cherry-picked)

More lion2leopard (each classes contain only 100 instances!)

horse2zebra

horse2zebra failure

zebra2horse

wtf

More zebra2horse

apple2orange

See more in readme_imgs/

Build horse2zebra

  • Download horse2zebra.zip from CycleGAN datasets
  • Unzip it here .
  • Run python build_dataset.py horse2zebra/trainA horse2zebra/trainB trainA trainB
  • (make sure dataset_trainA.npy & dataset_trainB.npy are created)
  • Then, run python example.py
  • (If you want to stop and restart your training later you can do: python example.py restore <last_iter_number>)

Requiremennts

  • Python 3.5
  • Tensorflow
  • Matplotlib
  • Pillow
  • (Only tested on Windows so far)

Very useful info

  • Training took me ~1day (GTX 1060 3g)
  • Each 100 steps the script adds an image in the images/ folder
  • Each 1000 steps the model is saved in models
  • CycleGAN seems to be init-sensitive, if the generators only inverse colors: kill & re-try training

Todo

  • Image Pool
  • Add learning reate linear decay

tensorflow-cyclegan's People

Contributors

eyyub avatar

Watchers

James Cloos avatar  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.