segan icon indicating copy to clipboard operation
segan copied to clipboard

variable does not exist

Open djjandXMU opened this issue 5 years ago • 10 comments

When I run the main.py,I find that ValueError: Variable d_model/d_block_0/downconv/W/RMSProp/ does not exists.

Could you help me? Best regards

djjandXMU avatar Jan 30 '20 14:01 djjandXMU

@djjandXMU I am also getting the same error. I have tried https://stackoverflow.com/questions/43183850/tensorflow-valueerror-variable-does-not-exist-or-was-not-created-with-tf-get-v but nothing seems to work. Did you get the solution?? Best Regards

AnilMandliya avatar Feb 27 '20 18:02 AnilMandliya

The another code https://github.com/leftthomas/SEGAN will be OK,you can try it.Best Regards

------------------ 原始邮件 ------------------ 发件人: "AnilMandliya"<[email protected]>; 发送时间: 2020年2月28日(星期五) 凌晨2:48 收件人: "santi-pdp/segan"<[email protected]>; 抄送: "沐雨弟"<[email protected]>;"Mention"<[email protected]>; 主题: Re: [santi-pdp/segan] variable does not exist (#80)

@djjandXMU I am also getting the same error. I have tried https://stackoverflow.com/questions/43183850/tensorflow-valueerror-variable-does-not-exist-or-was-not-created-with-tf-get-v but nothing seems to work. Did you get the solution?? Best Regards

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

djjandXMU avatar Feb 28 '20 00:02 djjandXMU

The given error can be solved by changing a fraction of a code... In main.py just change the optimizer function from tf.Adamoptimizer() to tf.GradientDescentOptimizer(). but the tradeoff to change main.py is traning time.

AnilMandliya avatar Mar 01 '20 05:03 AnilMandliya

model.py line144 self.d_opt = d_opt.apply_gradients(avg_d_grads) model.py line145 self.g_opt = g_opt.apply_gradients(avg_g_grads) Maybe you can replace line144-145 with the following code. with tf.variable_scope(tf.get_variable_scope(), reuse=tf.AUTO_REUSE): self.d_opt = d_opt.apply_gradients(avg_d_grads) self.g_opt = g_opt.apply_gradients(avg_g_grads)

chimo3333 avatar May 28 '20 05:05 chimo3333

@AnilMandliya @djjandXMU i have fixed this issue in my fork: https://github.com/fcakyon/segan

fcakyon avatar Jan 14 '21 09:01 fcakyon

@fcakyon Sorry to bother you, I used your fork to train this model on a no gpu machine,When I run train_segan.sh,I met the following error: tensorflow.python.framework.errors_impl.NotFoundError: No registered 'TemporaryVariable' OpKernel for XLA_CPU devices compatible with node {{node device_1/gradients/AddN_14/tmp_var}} Could you please help me figure out what problem happens? Any reply will be appreciated.

woshiZS avatar Aug 22 '22 03:08 woshiZS

@woshiZS unfortunately I no longer work on this project, I hope someone else can help you 👍

fcakyon avatar Aug 22 '22 10:08 fcakyon

@AnilMandliya @djjandXMU我已经在我的 fork 中解决了这个问题:https://github.com/fcakyon/segan

你好,我发现在你的readme文件中提供的预训练模型链接点不开,好像失效了,能重新发我一份吗,麻烦了

Titook avatar May 10 '23 05:05 Titook

@AnilMandliya @djjandXMU我已经在我的 fork 中解决了这个问题:https://github.com/fcakyon/segan

你好,我发现在你的readme文件中提供的预训练模型链接点不开,好像失效了,能重新发我一份吗,麻烦了

[email protected]

Titook avatar May 10 '23 05:05 Titook

这是来自QQ邮箱的自动回复邮件。您好,您的邮件我已经收到了,我会尽快给您回复。

ChangThinkTech avatar May 10 '23 05:05 ChangThinkTech