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)学习了,这个错误遇到过几次了 矩阵,多维,
确实很多坑 原来是这样啊 嗦嘎,以后遇到这个错也知道怎么解决了
页:
[1]