我在图像处理机器学习中的预测代码有一个错误,这是我的代码
# load the trained model
model = load_model('./model/modelLeNet5.h5')
x=(img1/255)
# predict the input image using the loaded model
pred1 = model.predict_classes(x)
错误显示:
ValueError: Input 0 of layer sequential is incompatible with the layer: : expected min_ndim=4, found ndim=3. Full shape received: (None, 1024, 3)
目前没有回答
相关问题 更多 >
编程相关推荐