Code Monkey home page Code Monkey logo

ib_gan's Introduction

IB_GAN

Description

This repository is modified from artemyk/ibsgd to fit the experiment on GAN. GAN is trained on 3 activations (tanh, relu, leakyrelu) to compare their results.

Prerequisites

  • python 3.5.6
  • six 1.15.0
  • keras 2.3.1
  • matplotlib 2.0.2
  • numpy 1.16.6
  • seaborn 0.9.1

Usage

  • save_activity_gan.py serves two purposes:

    • train GAN and save generator model
    • use the generator model to generate fake images, then concatenate it with real images, forming a new dataset. Next, save outputs of each layers while training GAN.
  • computeMI_gan.py load rawdata and compute Mutual Information of each layers

Step 1

Implement this step to obtain generator model, skip this step if generator_tanh.h5 exist.

python save_activity_gan.py --activation tanh --isTrain 1

Step 2

Save outputs of each layer while training GAN.

python save_activity_gan.py --activation tanh --isTrain 0

Step 3

Compute Mutual Information and plot figures.

python computeMI_gan.py --activation tanh

Results

Browse plots/mnist for all results with different activations. Showing plots below with tanh experiments.

Information Plane

Loss vs Mutual Information (Lower method)

Summary

ib_gan's People

Contributors

zhicheng0326 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.