Giter Club home page Giter Club logo

gan's Introduction

GAN

Open In Colab

Personal repository to learn about different types of GAN models using Keras.

Conda setup

  1. Clone this repo.
git clone https://github.com/RajK853/GAN.git $SRC_DIR
  1. Create and activate conda environment.
cd $SRC_DIR  
conda env create -f environment.yml    
conda activate gan-env

Implementations

GAN

Implementation of normal Generative Adversarial Network.

ACGAN

Implementation of Auxiliary Classifier Generative Adversarial Network.

BiGAN

Implementation of normal Bidirectional Generative Adversarial Network.

Example:

Train models

  1. Create a YAML config file (let's say config_1.yaml) as:
default: &default_config
  epochs: 1000
  latent_size: 50
  batch_size: 128
  evaluate_interval: 5
  lr: 0.0003
  num_evaluates: 10

GAN_latent_50:
  <<: *default_config
  model: GAN

GAN_latent_100:
  <<: *default_config
  model: GAN
  latent_size: 100

ACGAN:
  <<: *default_config
  model: ACGAN

BiGAN:
  <<: *default_config
  model: BiGAN
  1. Train the models by loading the parameters from the above YAML config file as:
python train.py config_1.yaml

The above config file will train GAN, ACGAN and BiGAN models with two different latent_size values for the GAN model only.

Any configuration with the key name with the prefix default will not be executed by default.

Feedforward layer configurations can be passed via layer_configs argument. Please look in example_configs directory for the sample YAML configuration file.

gan's People

Contributors

rajk853 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

leeliuhuan

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.