Coder Social home page Coder Social logo

yangco-le / advlatgan Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 1.0 373 KB

[NeurIPS 2022 Spotlight] Improving Generative Adversarial Networks via Adversarial Learning in Latent Space

Python 98.93% Shell 1.07%
deep-learning gan generative-adversarial-network generative-model

advlatgan's Introduction

AdvLatGAN: Adversarial Latent Generative Adversarial Networks

Official implementation of NeurIPS 2022 Spotlight paper: "Improving Generative Adversarial Networks via Adversarial Learning in Latent Space".

sampling_shift

A Brief Introduction: This work integrates adversarial techniques on latent space with GAN to improve the generation performance. The generation pipeline suffers from the "too continuous" issue when it tries to match up with the real data distribution, which is supported on disjoint manifolds. Adopting adversarial techniques in latent space, we impose an extra (implicit) transform function on the raw Gaussian sampling in GANs to perform "surgery" on the latent prior. Introducing targeted sampling transform in GAN training alleviates training challenges and empowers more robust network training pipelines, while the sampling transform in inference (generation) time directly improves the generation quality.

Code Organization

The implementation consists of three parts:

  • AdvLatGAN-qua: GAN training algorithm for better quality
  • AdvLatGAN-div: GAN training algorithm for more diverse generation
  • AdvLatGAN-z: post-training latent space sampling improvement

Experiments on -qua and -div are based on different implementations and we separate the code into folders AdvLatGAN-qua&-z and AdvLatGAN-div. AdvLatGAN-qua&-z also includes the code of -z.

Run

To run the code, please refer to the README.md in the subdirectories.

Reference

    @inproceedings{li2022improving,
    title={Improving Generative Adversarial Networks via Adversarial Learning in Latent Space},
    author={Yang Li and Yichuan Mo and Liangliang Shi and Junchi Yan},
    booktitle={Advances in Neural Information Processing Systems (NeurIPS)},
    year={2022}
    }

Acknowledgements

This repository is built upon pytorch-gan-collections, pytorch-gan-metrics and MSGAN.

advlatgan's People

Contributors

yangco-le avatar mo666666 avatar

Stargazers

jason avatar  avatar Haruki09 avatar Z avatar deepopo avatar  avatar  avatar  avatar  avatar Chen Yuanqi avatar Zi-Han Liu avatar  avatar Xianghui Zhu avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

pkulwj1994

advlatgan's Issues

Cifar_vanilla folder missing

@yangco-le Hi, I was trying to reproduce the results you presented in your NIPS paper. But I wasn't able to find the Cifar_vanilla directory which you mentioned in the readme.md (evaluation section) for the AdvLatGAN-div. I'd really appreciate it if you could show me the path to the directory.

Thanks!

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.