GithubHelp home page GithubHelp logo

wgan-pytorch's Introduction

Wasserstein GAN

This is a simple implementation of the Wasserstein GAN from Arjovsky et al, (https://arxiv.org/pdf/1701.07875.pdf). Pretrained weights are included for the LSUN bedroom dataset and the MNIST digits dataset. Other datasets can be used with the --path flag. Pre-trained weights are available in the models directory.

examples

Training

The model can be trained using a given dataset passed to the script with the --path [path to dataset] flag. The following options are supported:

--path: path to the training data

--lr: learning rate for RMSProp optimizer

--batch_size: training batch size

--epochs: number of epochs to run

--noise_size: size of the latent noise vector

--critic_steps: the number of discriminator optimizer steps per generator step

--cutoff: gradient cutoff for WGAN clipping (not used by default)

--image_size: image size to use. larger images will be resized.

--dataset: name of model to use. mnist and lsun models are provided.

--plot: whether to plot generator results after each epoch.

--visdom: should use visdom to plot training progress (default False)

--visdom_port: port for visdom to use.

The following is the training curve for the MNIST dataset:

train

wgan-pytorch's People

Contributors

jacobaustin123 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.