我有一个保存的keras模型,我正试图在使用flask托管的服务器上进行预测。模型的输入维度是12,输出维度是8。当我向服务器请求进行预测时,我得到了一个错误。requests.post(url, json={'dompath':[[2, 3, 5, 1, 3, 3, 1, 5, 6, 8, 4, 8]]})
print(r.json()) server.py的错误, 8), dtype=float32) is not an element of this graph
我有一个运行在Gcloud上的Flask应用程序,它使用html网页将图像发送到Python脚本进行预测(从保存在根目录中的模型绘制)。当我发送预测时,我得到的错误是“内容必须通过HTTPS提供”。 $.post("https://0.0.0.0:5000/predict", JSON.stringify(message), fun
我正在尝试使用我的Keras模型和我的TF对象检测模型。但是我得到了这个错误: ValueError: Calling `Model.predict` in graph mode is not supported when the `Model` instancemode or call `Model.predict` with eager mode enabled. print(np.around(model1.predict(datatest)))上的It错误我相信这是因为使用TF对象检测时<