模型可以预测新的形象

问题描述 投票:0回答:1

ValueError Traceback(最近调用last)in()----> 1 prediction = model.predict(image_resized.reshape(1,50,50,3))2 print('预测分数:\ n',预测[0 ])ValueError:无法将大小为2352的数组重塑为形状(1,50,50,3)

python-3.x tensorflow jupyter-notebook
1个回答
0
投票

只要查看你发布的内容,就应该用image_resized.reshape(1,50,50,3)替换image_resized.reshape(1,28,28,3)

© www.soinside.com 2019 - 2024. All rights reserved.