-
Notifications
You must be signed in to change notification settings - Fork 309
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
how can I generate after training? #7
Comments
I'd love to hear the official answer to this question! That said, I managed to get this to work by making this tiny change to
to
so that the InfoGANTrainer holds a reference to the piece of the graph that generates fake data samples from the trained generator graph. This way, you can reuse the graph to generate data once it's trained. To get access to the trained graph, I think you could probably do something similar to what you've done above by loading from a checkpoint, but instead in b4602c9 I also changed So finally, for
I hope this helps! 😸 |
can ref his code: https://github.com/RutgersHan/InfoGAN/ |
@daiwk Have the same problem! Did you manage to solve it? |
how can I use the checkpoint to generate images?
e.g. I wanna
`
saver.restore(sess, ckt_path)
but it says
tensorflow.python.framework.errors.FailedPreconditionError: Attempting to use uninitialized value fc_batch_norm_8/batch_norm/fc_batch_norm_8/batch_norm/moments/normalize/mean/ExponentialMovingAverage
[[Node: fc_batch_norm_8/batch_norm/fc_batch_norm_8/batch_norm/moments/normalize/mean/ExponentialMovingAverage/read = IdentityT=DT_FLOAT, _class=["loc:@fc_batch_norm_8/batch_norm/fc_batch_norm_8/batch_norm/moments/normalize/mean/ExponentialMovingAverage"], _device="/job:localhost/replica:0/task:0/cpu:0"]]
Caused by op u'fc_batch_norm_8/batch_norm/fc_batch_norm_8/batch_norm/moments/normalize/mean/ExponentialMovingAverage/read', defined at:
The text was updated successfully, but these errors were encountered: