Giter Club home page Giter Club logo

qp-wgan's Introduction

(q,p)-Wasserstein GANs

This repository contains Pytorch implementation of a method and experiments from the paper (q,p)-Wasserstein GANs: Comparing Ground Metrics for Wasserstein GANs.

Table of content

Repository structure

.
├── bin
│   ├── cifar10.sh
│   └── mnist.sh
├── data
├── figs
│   └── gif
├── models
│   ├── __init__.py
│   ├── cifar10.py
│   ├── gaussian_model.py
│   └── mnist.py
├── src
│   ├── __init__.py
│   ├── main.py
│   ├── qpwgan.py
│   ├── discrete_measures.py
│   ├── gaussian_mixture.py
│   ├── metrics.py
│   ├── plot_nearest_distance.py
│   └── utils.py
├── README.md
├── requirements.txt
└── setup.py

Installation

pip install -r requirements.txt
pip install -e .

Usage

To use wandb tracking, do in advance

wandb login

Optimization of Wasserstein metric on discrete measure:

python src/discrete_measures.py

Approximating a Gaussian mixture distribution:

python src/gaussian_mixture.py \
                 --n_epoch 601 \
                 --search_space full \
                 --n_critic_iter 2 \
                 --reg_coef1 0.1 \
                 --reg_coef2 1 \
                 --batch_size 64

MNIST

bash bin/mnist.sh

Some results

CIFAR10

bash bin/cifar10.sh

CIFAR10 Progress

q=1, p=1, critic iters = 1 q=1, p=1, critic iters = 5
q=1, p=2, critic iters = 1 q=1, p=2, critic iters = 5
q=2, p=2, critic iters = 1 q=2, p=2, critic iters = 5

qp-wgan's People

Contributors

sverdoot avatar samokhinv avatar burnyshev avatar etomoscow 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.