yu1fan2000 2019-11-26 23:16 采纳率: 0%
浏览 2041

用Kerasa运行GAN程序时只能对抗一次就报错

最近在学习GAN网络,从
https://github.com/eriklindernoren/Keras-GAN#sgan
下了模型出来运行,就会对抗一次然后报错。自己根据模型改写代码,也出现相同问题。图片说明错误代码是:BaseCollectiveExecutor::StartAbort Failed precondition: Error while reading resource variable _AnonymousVar41 from Container: localhost. This could mean that the variable was uninitialized. Not found: Resource localhost/_AnonymousVar41/class tensorflow::Var does not exist.
[[{{node mul_1/ReadVariableOp}}]]
不清楚该如何解决,百度谷歌了都没有有效的解决办法

  • 写回答

6条回答

  • Ten_yn 2020-01-03 14:58
    关注

    如果用的是tf2.0的话,把keras改成tensorflow.keras看看?我的这个问题是这样解决的。

    评论

报告相同问题?