Git Product home page Git Product logo

triple-gan's Introduction

Triple-GAN

PyTorch implementation of Triple-GAN built upon a mean teacher classifier and a projection discriminator with spectral normalization. The code reproduces the main results in https://arxiv.org/abs/1912.09784

Envoronment settings and libs we used in our experiments

pip install -r requirement.txt

Examples on Cifar10

Baseline classifier

python train_classifier.py ./configs/classifier_cifar10_mt_noaug.yaml -subfolder cifar10 -key noaug -gpu 0

Tirple-GAN

python train_triplegan.py ./configs/triple_gan_cifar10_mt_noaug_sngan.yaml -subfolder cifar10 -key noaug -gpu 1

Results

Semi-supervised classification

Using a commonly adopted 13-layer CNN classifier, Triple-GAN-V2 outperforms extensive semi-supervised learning methods substantially on more than 10 benchmarks no matter data augmentation is applied or not.

Semi-supervised generation

Besides, with only 8% labels, Triple-GAN-V2 achieves comparable Inception Score (IS) and Frechet Inception Distance (FID) to CGAN-PD trained with full labels on the CIFAR10 dataset. It also significantly outperforms SNGAN trained with fully unlabeled data and CGAN-PD trained on a subset of labeled data.

Extreme low data regime

We also provide preliminary results in the extreme low data regime where only a small subset of labeled data is available.

triple-gan's People

Contributors

zhenxuan00 avatar taufikxu 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.