Giter Site home page Giter Site logo

gan-intro's People

Contributors

johnglover avatar yassersouri 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gan-intro's Issues

confuse about the define of placeholder

when I change the position of placeholder of x, it goes wrong
the original is:

self.z = tf.placeholder(tf.float32, shape=(params.batch_size, 1), name="z")

with tf.variable_scope('G'):
 ……

self.x = tf.placeholder(tf.float32, shape=(params.batch_size, 1), name="x")

with tf.variable_scope('D'):
 ……

I change to:

self.z = tf.placeholder(tf.float32, shape=(params.batch_size, 1), name="z")
self.x = tf.placeholder(tf.float32, shape=(params.batch_size, 1), name="x")

with tf.variable_scope('G'):
 ……

with tf.variable_scope('D'):
 ……

the training result is completely wrong. I am so confused, can anyone tell me why this change will effect the result.

Loss nan when "--minibatch True"

hi @johnglover
It's well to run python gan.py
But i got all nan for loss when running with minibatch discrimination python gan.py --minibatch True:

0: inf  nan
10: nan nan
20: nan nan
30: nan nan
40: nan nan
50: nan nan
60: nan nan
70: nan nan
80: nan nan
90: nan nan
100: nan    nan
110: nan    nan
120: nan    nan
130: nan    nan
140: nan    nan
150: nan    nan
160: nan    nan
170: nan    nan
180: nan    nan
190: nan    nan
200: nan    nan
......

My numpy, scipy, seaborn and tensorflow are all in the newest version.

Any tips about this nan?

Question on minibatch discrimination

In Tim Salimans' paper, minibatch discrimination is applied separately to generated and real samples. Did you try that as well ? If yes, did it have a different effect on the results ?

reordering matplotlib in requirement.txt

upon running gan.py, I was getting below error.
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9

Searching for the problem in stackoverflow gave me this solution.

placing matplotlib after numpy solved the issue:

like this:

numpy==1.11.3
matplotlib==1.5.3

Can we fix this in upstream?

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.