All Projects → zhangqianhui → ICGan-tensorflow

zhangqianhui / ICGan-tensorflow

Licence: Apache-2.0 license
The code of "Invertible conditional GANs for image editing" in tensorflow

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ICGan-tensorflow

Torchadver
A PyTorch Toolbox for creating adversarial examples that fool neural networks.
Stars: ✭ 88 (+417.65%)
Mutual labels:  adversarial-networks
nemesyst
Generalised and highly customisable, hybrid-parallelism, database based, deep learning framework.
Stars: ✭ 17 (+0%)
Mutual labels:  adversarial-networks
dan
Demo code for the paper ''Distributional Adversarial Networks''
Stars: ✭ 18 (+5.88%)
Mutual labels:  adversarial-networks
Chromagan
Official Implementation of ChromaGAN: An Adversarial Approach for Picture Colorization
Stars: ✭ 117 (+588.24%)
Mutual labels:  adversarial-networks
Adversarial Autoencoders
Tensorflow implementation of Adversarial Autoencoders
Stars: ✭ 215 (+1164.71%)
Mutual labels:  adversarial-networks
MCS2018 Solution
No description or website provided.
Stars: ✭ 16 (-5.88%)
Mutual labels:  adversarial-networks
Man
Multinomial Adversarial Networks for Multi-Domain Text Classification (NAACL 2018)
Stars: ✭ 72 (+323.53%)
Mutual labels:  adversarial-networks
AdversarialAudioSeparation
Code accompanying the paper "Semi-supervised adversarial audio source separation applied to singing voice extraction"
Stars: ✭ 70 (+311.76%)
Mutual labels:  adversarial-networks
EAD Attack
EAD: Elastic-Net Attacks to Deep Neural Networks via Adversarial Examples
Stars: ✭ 34 (+100%)
Mutual labels:  adversarial-networks
Adversarial-Semisupervised-Semantic-Segmentation
Pytorch Implementation of "Adversarial Learning For Semi-Supervised Semantic Segmentation" for ICLR 2018 Reproducibility Challenge
Stars: ✭ 151 (+788.24%)
Mutual labels:  adversarial-networks
Electra
中文 预训练 ELECTRA 模型: 基于对抗学习 pretrain Chinese Model
Stars: ✭ 132 (+676.47%)
Mutual labels:  adversarial-networks
Adversarial Semisupervised Semantic Segmentation
Pytorch Implementation of "Adversarial Learning For Semi-Supervised Semantic Segmentation" for ICLR 2018 Reproducibility Challenge
Stars: ✭ 147 (+764.71%)
Mutual labels:  adversarial-networks
precision-recall-distributions
Assessing Generative Models via Precision and Recall (official repository)
Stars: ✭ 80 (+370.59%)
Mutual labels:  adversarial-networks
Moving Semantic Transfer Network
Tensorflow codes for ICML2018, Learning Semantic Representations for Unsupervised Domain Adaptation
Stars: ✭ 94 (+452.94%)
Mutual labels:  adversarial-networks
StudyAdversarials
Some of my experiments targeting adversarial instances
Stars: ✭ 12 (-29.41%)
Mutual labels:  adversarial-networks
Inverse rl
Adversarial Imitation Via Variational Inverse Reinforcement Learning
Stars: ✭ 79 (+364.71%)
Mutual labels:  adversarial-networks
EANN-KDD18
EANN: event-adversarial neural networks for multi-modal fake news detection
Stars: ✭ 171 (+905.88%)
Mutual labels:  adversarial-networks
GAN-70-Lines-of-Julia
A Knet implementation of MLP GAN for MNIST data.
Stars: ✭ 52 (+205.88%)
Mutual labels:  adversarial-networks
Adversarial-Examples-in-PyTorch
Pytorch code to generate adversarial examples on mnist and ImageNet data.
Stars: ✭ 112 (+558.82%)
Mutual labels:  adversarial-networks
tensorflow-mnist-AAE
Tensorflow implementation of adversarial auto-encoder for MNIST
Stars: ✭ 86 (+405.88%)
Mutual labels:  adversarial-networks

ICGan-tensorflow

the test code of Invertible conditional GANs for image editing using Tensorflow.

The Torch code of Author.

INTRODUCTION

In this paper , a real image can be encoded into a latent code z and conditional information y,and then reconstucted to the origial image by generative model of Gans.The paper fix z and modify y to obtain variations of the original image.

The IcGAN is trained in three steps.

1.Train the Gan.
2.Train the encoder Z to map an image x to a latent representation z with the dataset generated images.
3.Train the encoder Y to map an image x to a conditional information vector y with the dataset of real images.

Prerequisites

  • tensorflow 1.0

  • python 2.7

  • opencv 2.4.8

Usage

Download mnist:

$ python download.py

Train Gan:

$ python main.py --OPER_FLAG 0

Train Encode z:

$ python main.py --OPER_FLAG 1

Train Encode y:

$ python main.py --OPER_FLAG 2

Test to reconstuction:

$ python main.py --OPER_FLAG 3 --extend 0

Test new result:

$ python main.py --OPER_FLAG 3 --extend 1

Result of Test in mnist dataset:

The original image:

The restruction image:

The new sample of changing y:

Reference code

DCGAN

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].