Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

11_gan do not work! #83

Open
lanpay-lulu opened this issue Mar 3, 2017 · 3 comments
Open

11_gan do not work! #83

lanpay-lulu opened this issue Mar 3, 2017 · 3 comments

Comments

@lanpay-lulu
Copy link
Contributor

I try to generate and display a new sample, but generate a array of all 0.5.
And I print g_cost = sess.run(G_objective, feed_dict={z: generate_z(batch_size)}) at each iteration but find that they are all the same.
I really don`t know where it goes wrong...

@lanpay-lulu
Copy link
Contributor Author

The problem is here:
def xavier_initializer(shape):
return tf.random_normal(shape=shape, stddev=1/shape[0])

stddev=1/shape[0] should be stddev=1.0/shape[0]

@hunkim
Copy link
Collaborator

hunkim commented Mar 3, 2017

Cool. Could you send a pull request?

@lanpay-lulu
Copy link
Contributor Author

It seems that the output of G for each pixel should be in range [0,255]?
Using sigmoid will only generate values in range (0, 1).
No significant image has been generated so far.
I`m still working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants