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)
|