Code Monkey home page Code Monkey logo

cogan's Introduction

Coupled Generative Adversarial Network code

General

This is the open source repository for the Coupled Generative Adversarial Network (CoupledGAN or CoGAN) work. For more details please refer to our NIPS 2016 paper or our arXiv paper. Please cite the NIPS paper in your publications if you find the source code useful to your research.

I have improved the algorithm by combining with encoders. For more details please check our NIPS 2017 paper on Unsupervised Image-to-Image Translation Networks

USAGE

In this repository, we provide both Caffe implementation and PyTorch implementation. For using the code with the Caffe library, please consult USAGE_CAFFE. For using the code with the PyTorch library, please consult USAGE_PYTORCH.

CoGAN Network Architecture

CoGAN learn to generate corresponding smile and non-smile faces

CoGAN learn to generate corresponding faces with blond-hair and without non-blond-hair

CoGAN learn to generate corresponding faces with eye-glasses and without eye-glasses

CoGAN learn to generate corresponding RGB and depth images


Copyright 2017, Ming-Yu Liu All Rights Reserved

Permission to use, copy, modify, and distribute this software and its documentation for any non-commercial purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of the author not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission.

THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ANY PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

cogan's People

Contributors

mingyuliutw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cogan's Issues

CoGAN pytorch version

There is no 'train_cogan_usps2mnist.py'
But, in CoGAN-pytorch readme, you said that 'python train_cogan_usps2mnist.py' ..

why?

Issue on RGBD dataset

I run the mnist example without any problem.
But when I try to reimplement the example on the RGBD datset in your paper, I can't genarate the right objects. I exactly followed your parameters in your supplementary materials, but I can't get it right.
Could your please update an example for the RGBD dataset, or simply provide the .train.ptt file for me to verify my errors? That will help me a lot.
Thank you.

OSError

Hello,

I have an issue running the code for Pytorch. I am trying to run the simple example:
cd cogan_pytorch/src;
python train_cogan_mnistedge.py --config ../exps/mnistedge_cogan.yaml;

However, I get the following output and error:
python train_cogan_mnistedge.py --config ../exps/mnistedge_cogan.yaml
self.scale=2.0
self.log='../outputs/mnistedge_cogan/mnistedge_cogan.log'
self.snapshot_prefix='../outputs/mnistedge_cogan/mnistedge_cogan'
self.max_iter=5000
self.batch_size=64
self.bias=0.5
self.latent_dims=100
self.snapshot_iter=500
self.display=10
<net_config.NetConfig object at 0x7fd9cd2def90>
Traceback (most recent call last):
File "train_cogan_mnistedge.py", line 95, in
main(sys.argv)
File "train_cogan_mnistedge.py", line 35, in main
os.remove(config.log)
OSError: [Errno 21] Is a directory: '../outputs/mnistedge_cogan/mnistedge_cogan.log'

Any help would be greatly appreciated! Thanks!

Did you verify the code in pytorch version?

The Network archtecture of Discriminator is strange in "MNIST_EDGE" task.
Why the number of ouput channel is 2?
When I train the train_cogan_mnist.py, the result is awful. It seems Generator can not learn much from training, G_loss keeps a high value while D_loss is always much samller.
I am a little doubt with the effectiveness of this pytorch version code

parameter update step

Please forgive me asking a stupid question.
The CoGAN can be trained end-to-end.
But according to GAN principle, the parameters of Discriminators updated by gradient descent and the parameters of Generators updated by gradient ascent.
I don't understand how do you implement these update steps.
Could you figure out for me? Which parts of your code fix these problem?
Thank you.

Running CoGAN

Hello,

I am trying to run the code. Can you please tell me how to run this and specify any dependencies? There was no README file included with the code.

Thank You,
Maria

Batchnorm update

Hi, Great way of doing GANs in caffe with the toggle params inside the layer!

I have a minor question: In your scripts, you have specified the learning rates for the batch norm parameters as 1 during training. In traditional caffe-docs, the lr_params for batch norm mean/variance parameters are set to zero since these statistics are accumulated.

I am wondering why you have used the mean variance parameters as learnable params ?

pytorch-version problem

I am using pytorch version to train the mnistedge, but after more than 20000 iterations, the results are like random noise. Can someone offered help?!

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.