Coder Social home page Coder Social logo

triangle-gan's Introduction

Triangle-GAN

This is an implemtation for NIPS paper: Triangle Generative Adversarial Networks

1. Experiments Settings:

1. Running environment:

tensorflow 1.1.0, python 2.7;

2. Dataset Format

For domain transfer and classification task, CelebA and MSCOCO dataset need to be in HDF5 format;

For semi-supervised learning tasks, please see here

3. Resources

For domain transfer and classification task: If you want to re-run the CelebA experiment, the feature can be downloaded here: CelebA tag features

2. Basic Model:

Here's is our model:

alt text

The value function for TriGAN model:

alt text The objective of $\Delta$-GAN is to match the three joint distributions: $p(x, y)$, $p_x(x, y)$ and $p_y(x, y)$. If this is achieved, we are ensured that we have learned a bidirectional mapping $p_x(x|y)$ and $p_y(y|x)$ that guarantees the generated fake data pairs $(\hat{x}, y)$ and $(x, \hat{y})$ are indistinguishable from the true data pairs $(x, y)$. In order to match the joint distributions, an adversarial game is played. Joint pairs are drawn from three distributions: $p(x, y)$, $p_x(x, y)$ or $p_y(x, y)$, and two discriminator networks are learned to discriminate among the three, while the two conditional generator networks are trained to fool the discriminators.

3. Compare with simplified Triple GAN:

alt text

figure (a): the joint distribution $p(x,y)$ of real data.

figure (b): $\Delta$-GAN left: the joint distribution $p_x(x,y)$; right: the joint distribution $p_y(x,y)$.

figure (c): Tirple GAN without regularization terms left: the joint distribution $p_x(x,y)$; right: the joint distribution $p_y(x,y)$.

4. Results

1. conditional generated CIFAR images:

alt text

2. MSCOCO:

1. generated COCO

alt text

2. COCO to attributes to COCO

alt text

3. CelebA tasks:

1. faces to attributes to faces

alt text

2. face editting

alt text

triangle-gan's People

Contributors

liqunchen0606 avatar

Stargazers

 avatar tyty avatar Peter Baylies avatar  avatar Bensuuun avatar DOU avatar  avatar  avatar VictorLee avatar Harris Xia avatar  avatar Cheng Lu avatar Ibne Farabi Shihab avatar zuoyi avatar Yili Zhao avatar South avatar Xixi Hu avatar Xinpeng Li avatar Harsh Nilesh Pathak avatar Cheng Ma avatar  avatar Shaoxiong Feng avatar  avatar Jason Kraus avatar cc. avatar Jonathan Jeon avatar Rui Meng avatar Afshin Rahimi avatar  avatar  avatar  avatar  avatar Zhiqian Chen avatar yuanke avatar Liqian Ma avatar Ying Zhan avatar Yizhe Zhang avatar Zhu Zhen avatar Ramin Fahimi avatar sile avatar Dan Rubins avatar  avatar  avatar Shubham Pachori avatar AGI avatar Chengpeng Chen avatar clover9 avatar John Ng avatar 爱可可-爱生活 avatar Overfit avatar menorki manil avatar Paidamoyo Chapfuwa avatar Ruiyi Zhang avatar Tianhang Gao avatar Balint Cristian avatar  avatar  avatar  avatar Miraitowa` avatar gujiuxiang avatar Zhe Gan avatar

Watchers

James Cloos avatar sile avatar  avatar  avatar Peng avatar paper2code - bot avatar

triangle-gan'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.