keras-face-recognition icon indicating copy to clipboard operation
keras-face-recognition copied to clipboard

貌似环境兼容问题

Open XiHenSuper opened this issue 2 years ago • 6 comments

原始报错TypeError: Cannot interpret feed_dict key as Tensor: Tensor Tensor("Placeholder:0", shape=(3, 3, 3, 10), dtype=float32) is not an element of this graph.

加了``` from keras import backend as K K.clear_session()

后报错:
`ValueError: Tensor("Placeholder:0", shape=(3, 3, 3, 10), dtype=float32) must be from the same graph as Tensor("conv1/kernel:0", shape=(3, 3, 3, 10), dtype=float32_ref).`

XiHenSuper avatar May 05 '23 11:05 XiHenSuper

什么版本啊

bubbliiiing avatar May 07 '23 14:05 bubbliiiing

tensorflow:1.13.1 keras:2.2.4

XiHenSuper avatar May 09 '23 13:05 XiHenSuper

感觉好像没啥问题,你换成2.1.5看看,keras,如果还不行你截个图看看……

bubbliiiing avatar May 09 '23 14:05 bubbliiiing

之前换成2.1.5仍然不行, 仍然报错:

ValueError: Tensor("Placeholder:0", shape=(3, 3, 3, 10), dtype=float32) must be from the same graph as Tensor("conv1/kernel:0", shape=(3, 3, 3, 10), dtype=float32_ref).

XiHenSuper avatar May 09 '23 14:05 XiHenSuper

截图截图

bubbliiiing avatar May 10 '23 14:05 bubbliiiing

真不合理

bubbliiiing avatar May 10 '23 14:05 bubbliiiing