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

用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看看?我的这个问题是这样解决的。

    评论

报告相同问题?

悬赏问题

  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型