我正在使用 keras 和 tensorflow 进行时间序列预测。我需要用未来的数据重新训练模型。我的问题是,这在 keras 中是否可行,我们如何做到这一点?
我已经使用sudo apt-get install gunicorn. 如何找到gunicorn的安装位置?
我有一个带有 POST 方法的简单烧瓶服务器,可以从用户那里获取图像。获取图像后,我需要将该图像转换为 PIL 图像文件,其余过程需要该 PIL 图像文件。
@app.route("/predict",methods=["POST"])
def predict():
image=request.files['file']
# convert this image to pil image
.....
Run Code Online (Sandbox Code Playgroud)
有什么简短的方法吗?