【问题标题】:model can predict new image模型可以预测新图像
【发布时间】:2019-02-28 17:06:18
【问题描述】:

ValueError Traceback (last last call last) in () ----> 1 prediction = model.predict(image_resized.reshape(1,50,50,3)) 2 print('Prediction Score:\n', prediction[0]) ValueError: 无法将大小为 2352 的数组重新整形为 (1,50,50,3)

【问题讨论】:

标签: python-3.x tensorflow jupyter-notebook


【解决方案1】:

只需查看您发布的内容,您应该将 image_resized.reshape(1,50,50,3) 替换为 image_resized.reshape(1,28,28,3)

【讨论】: