keras运行报错ValueError: Graph disconnected: cannot obtain value for tensor Tensor

keras运行报错ValueError: Graph disconnected: cannot obtain value for tensor Tensor(“input_1:0”, shape=(?, 64, 64, 3), dtype=float32) at layer “input_1”. The following previous layers were accessed without issue: []

图中画圈的位置不可以继续使用Input()使用的参数名,需要重新使用一个参数名即可:
原始函数如下:
在这里插入图片描述
修改后如下:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42074867/article/details/88551079
今日推荐