GithubHelp home page GithubHelp logo

bicyclegan-keras's Introduction

BicycleGAN-Keras

BicycleGAN Implemented In Keras

Paper: https://papers.nips.cc/paper/6650-toward-multimodal-image-to-image-translation.pdf

Github: https://github.com/junyanz/BicycleGAN

Slight Modifications:

  • Only 1 patch discriminator, with 16 8x8 patches
  • Uses CNNs for both E and D
  • Uses Pooling and Upsampling instead of strides
  • Modified learning rates

alt text Results

(1 x Labels, 1 x Ground Truth, 6 x Generated Image)

Dependencies:

  • Numpy
  • Pillow
  • Matplotlib (Somewhat redundant)
  • Tensorflow
  • Keras

Be sure to load data into /data/ folder.

data/DomainA and data/DomainB are for image pairs. data/DomainAs and data/DomainBs are for non-paired images.

Run pretrained model: Run main.py, 100 sample sheets will be generated.

Train a new model: Clear parameters in declaration of BicycleGAN near the end of main.py. Comment or delete the line where an old model is loaded near the end of main.py - "model.load(6)". Set train_model to true near the end of main.py. Run main.py.

bicyclegan-keras's People

Contributors

manicman1999 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bicyclegan-keras's Issues

Charging images with BicycleGAN

Dear @manicman1999 ,

I am interested in your implementation of BicycleGAN because it seems simple and accessible to me.
At the moment, I'm trying to test your model but I have a little problem.
I get the following error:

'line 50, in
tempA = Image.open("data/DomainA/im ("+str(n)+").png")
File "/usr/local/lib/python3.5/dist-packages/PIL/Image.py", line 2652, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'data/DomainA/im (2).png'

I think this error comes from the fact that there is only one image in each domain.
Speaking of which, I saw that there were paired images and images that were not. I didn't understand their usefulness in training since it seems to me that paired images are used in this model.

Rekkouza

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.