• Stars
    star
    154
  • Rank 242,095 (Top 5 %)
  • Language
    Python
  • Created about 8 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🎎 InfoGAN: Interpretable Representation Learning

InfoGAN

This repository contains a straightforward implementation of Generative Adversarial Networks trained to fool a discriminator that sees real MNIST images, along with Mutual Information Generative Adversarial Networks (InfoGAN).

Usage

  • Install tensorflow

Then run for GAN:

python3 infogan/__init__.py

And InfoGAN:

python3 infogan/__init__.py --infogan

Visualization

To see samples from the model during training you can use Tensorboard as follows:

tensorboard --logdir MNIST_v1_log/

Expected Result

GAN

You should now see images like these show up:

fake number fake number fake number fake number fake number fake number fake number fake number fake number fake number fake number

InfoGAN

On tensorboard you should see the following properties emerge:

variations

InfoGAN for chairs dataset

Command line presented below will train Infogan for chairs dataset with the configuration that is supposed to uncover rotation as the continuous latent code. Download an untar dataset from here, and make sure that is is located at path/to/rendered_chairs/

python3 train.py --dataset path/to/rendered_chairs/ --scale_dataset 64 64 --batch_size 128 --discriminator conv:4:2:64:lrelu,conv:4:2:128:lrelu,conv:4:2:256:lrelu,conv:4:1:256:lrelu,conv:4:1:256:lrelu,fc:1024:lrelu --generator fc:1024,fc:8x8x256,reshape:8:8:256,deconv:4:1:256,deconv:4:2:256,deconv:4:2:128,deconv:4:2:64,deconv:4:1:1:sigmoid --categorical_lambda 1.0 --continuous_lambda 10.0 --categorical_cardinality 20 20 20 --num_continuous 1 --style_size 128 --plot_every 400 --force_grayscale

Note: generator architecture changed w.r.t. the publication, due to the fact that it was producing 32x32 images rather than 64x64 images as desired. Results may be different.

More Repositories

1

theano_lstm

🔬 Nano size Theano LSTM module
Python
304
star
2

PVDM

📚 Implementation of Q.V. Le, and T. Mikolov, "Distributed Representations of Sentences and Documents ICML", 2014.
Python
246
star
3

pytreebank

😡😇 Stanford Sentiment Treebank loader in Python
Python
98
star
4

wikipedia_ner

📖 Labeled examples from wiki dumps in Python
Jupyter Notebook
68
star
5

glove

🌎 Compute Glove vectors using a co-occurence matrix
Python
52
star
6

cython_lstm

🐍 LSTM Python library using Cython
Python
38
star
7

epub_conversion

Python package for converting xml and epubs to text files
Python
34
star
8

tensorflow_qrnn

Quasi-Recurrent Neural Network (QRNN) for Tensorflow
C++
23
star
9

tf_mesh_renderer

TF Mesh Renderer
Jupyter Notebook
14
star
10

ciseau

🚀 Tokenize and clean strings in Python
Python
13
star
11

rsm

Topic analysis using RSM or PVDM.
Python
11
star
12

gradient_optimizers

Python package for wrapping gradient optimizers for models in Theano
Python
9
star
13

wikipedia_parser

Parse Wikipedia dumps, extracts links, and page types.
Ruby
3
star
14

pywikilinks

🌐 Download and Curate the Wiki-Links dataset
Python
3
star
15

PythonObjectLM

Python implementation of Object Language Model with Cython fast training.
Python
2
star
16

ObjectLM

Java implementation of a document / word language model.
Java
1
star
17

FuxiRevenge

📈 Using DBPedia and Yahoo Finance to put stock values on the (a) map.
JavaScript
1
star
18

mini_cuda_rtc

Miniature CUDA Array library with Runtime Compilation
C++
1
star
19

autodraw

Jupyter Notebook
1
star
20

geofirechat

Location aware chatting service
JavaScript
1
star
21

jonbook

📘 Book Exchange Site
CSS
1
star
22

lm_organizer

Unsupervised Language Model centered around binary search
Python
1
star
23

trend_influencer_analysis

Trend Analysis in very basic form
Python
1
star
24

progressbar

A progressbar with a floating percentage value above the bar.
Ruby
1
star
25

collision_test

Build Mazes for little king men using Javascript, Sinatra, and Heroku
JavaScript
1
star
26

jonparticlemaker

Some javascript doodles.
JavaScript
1
star