首页 > 解决方案 > 模型可以预测新图像

问题描述

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.xtensorflowjupyter-notebook

解决方案


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


推荐阅读