深度大佬进修 发表于 2018-9-18 15:08:46

Error:ValueError: Cannot feed value of shape (64, 64, 3)which has shape '(?, ...

Error:ValueError: Cannot feed value of shape (64, 64, 3) for Tensor u'Placeholder:0', which has shape '(?, 64, 64, 3)'在对图片矩阵进行reshape时报错错误原因:图片的shape是(64,64,3),而占位符_x的shape是(?,64,64,3),两个shape的维度是不同的,所以出现了错误。解决方法:将image = array(img).reshape(64,64,3)改为image = array(img).reshape(1,64,64,3)

I_Like_AI 发表于 2018-9-27 17:52:51

学习了,这个错误遇到过几次了

3dfx232 发表于 2018-10-3 11:21:24

矩阵,多维,
确实很多坑

I_Like_AI 发表于 2018-10-11 08:07:00

原来是这样啊

上条把妹之手 发表于 2018-10-12 09:10:44

嗦嘎,以后遇到这个错也知道怎么解决了
页: [1]
查看完整版本: Error:ValueError: Cannot feed value of shape (64, 64, 3)which has shape '(?, ...