openai/improved-gan

ValueError: Variable d_h0_conv/w/Adam/ does not exist

chihyaoma opened this issue · 17 comments

When running on ImageNet, I got this error.

ValueError: Variable d_h0_conv/w/Adam/ does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=None in VarScope?

After searching online for a while, I found that this issue is introduced by using TensorFlow 0.12.

While using tf.variable_scope() solve the issue on DCGAN, I found it difficult to apply the same techniques on improved-gan.

If anyone faced the same issue, can you please share with me how you solve it?

I also got this error by running DCGAN.I think it is caused by tensorflow 0.12.
So , I wrote the DCGAN code by myself , it don't has this problem.

https://github.com/zhangqianhui/Conditional-Gans

hoping it can help you.

@zhangqianhui I followed the commit from your repository, but unfortunately, it didn't solve this problem for improved-gan. I believe it's because the logic and code structure in improved-gan is still different from DCGAN.

I will try again sometime soon and get back to you if I solve it.

@chihyaoma It's not caused by this commit. But in tensorflow 0.11 , the project is ok

@chihyaoma Have you solved it?

@zhangqianhui I haven't had the time to work on it. I will make sure to update this post if I have the time to fix the problem. Thanks for asking.

@hans @jonasschneider @welinder @yaroslavvb @goodfeli
have you test the project in tensorflow 0.12?
thanks for your answer

I haven't tested in in 0.12.

@goodfeli the error "d_h0_conv/w/Adam/" confused me.
And DCGAN also have this problem , but it have updated ans solved it.
Hope you test it and update.Thanks.

@goodfeli ok , If I have solved it , I will make a PR

I have solved this problem , and I will test it , and make a PR @goodfeli @chihyaoma

@chihyaoma I have updated codes
https://github.com/zhangqianhui/improved-gan
You can test it.Maybe it's have some problems.

@goodfeli ,Just supported tf0.12. the code need more changes , and I will test and updated to support 4 gpu.

@zhangqianhui
did u got any contact info, such as email ?
how can i contact with u ?

I get the github notifications, so you can contact me that way.
I don't work at OpenAI anymore, so maybe we need to have @TimSalimans approve your PR when you're ready to make it. I can still review PRs that relate to the ImageNet code.