Git Product home page Git Product logo

image_to_image_translation_cyclegan's Introduction

image_to_image_translation_cyclegan


Setup

  1. Download the Monet2Photos dataset as follows:
wget https://people.eecs.berkeley.edu/~taesung_park/CycleGAN/datasets/monet2photo.zip
  1. Make a new directory (e.g. 'data'), and make it the current directory
mkdir data
cd data
  1. Unzip the zip file containing the dataset inside the 'data' directory
unzip monet2photo.zip
  1. Install the keras_contrib library as follows:
pip install git+https://www.github.com/keras-team/keras-contrib.git
  1. Create a new directory (e.g. 'results') to store the original, generated and reconstructed images
mkdir results

About the execution modes

A) Train mode

  • Vanilla execution mode
  • Images will be loaded, and the generator and discriminator networks will be trained
  • Generator will generate images from the given input, discriminator will distinguish between real and fake images
  • The adversarial model is responsible for reaching an optimum value of the objective function
  • After every epoch, the weights are updated to tune both the networks to reach maximum efficiency.

B) Predict mode

  • The discriminator network isn't involved here - only the weights of the generator network are loaded, and the generator network is trained
  • The generator generates images for the input images it is provided
  • No networks are optimized, the generator just generates images for the entire batch of inputs.

image_to_image_translation_cyclegan's People

Contributors

adichat avatar anacoder1 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

image_to_image_translation_cyclegan's Issues

Typo in line 440

line 440

    for i in range(len(generatedA)):
      save_images(originalA = batchA[i], generatedB = generatedB[i], reconstructedA = recons_A[i],
                  originalB = batchB[i], generatedA = generatedA[i], reconstructedB = recons_B[i],
                  path = "results/test_{}".format(i))

recons_A should be reconsA
recons_B should be reconsB

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.