Giter Club home page Giter Club logo

progan-pytorch's Introduction

Progressive Growing of GANs

A pytorch implementation of the popular paper "Progressive growing of gans for improved quality, stability, and variation" (Official tensorflow code).

Current progress

Results from a 256-filter model on 128x128:

Features

  • Fully implemented progressive growing of GANs to reproduce the results on the CelebA-HQ dataset.
  • Use of WGAN-GP loss
  • Easy-to-use config files to change hyperparameters for testing
  • Supports both CelebA-HQ and MNIST
  • High performance data pre-processing pipeline
  • DataParallel support to run on multi-gpu (single node) systems
  • Mixed precision support with Apex AMP. We recommend to use optimization level O1
  • Loading and saving of checkpoints to stop and resume training

Requirements

To reproduce our results, we recommend you to use a docker environment defined in the Dockerfile

Training CelebA-HQ

  1. Download and pre-process the celebA-HQ dataset. We recommend using the following code: https://github.com/nperraud/download-celebA-HQ

  2. Pre-process the dataset and save images in different image sizes. By default from 4 to 1024).

python3 src/data_tools/generate_datasets.py --source_path data/celebA-HQ --target_path /path/to/extracted/celebA-HQ
  1. Define the hyperparameters. Default config file uses the default hyperparameters from the paper with maximum 256 filters in each convolution.

  2. Start training

python3 src/train.py models/default/config.yml

TODO

  • WGAN-GP loss + AC-GAN (as presented in the paper) for class conditional datasets
  • CIFAR-10 & LSUN datasets

Reference implementation

progan-pytorch's People

Contributors

hukkelas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

progan-pytorch's Issues

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.