从容器:本地主机读取资源变量block3_conv3 / bias时出错。 Keras / Flask API

时间:2019-10-28 04:59:49

标签: python tensorflow flask keras raspberry-pi

我正在尝试在树莓派上使用烧瓶使用Keras model。我正在关注this tutorial

通过一些调整,我可以使其在Windows机器上工作。但是,当我尝试在树莓派4上运行它时,在尝试预测时出现以下错误:

tensorflow.python.framework.errors_impl.FailedPreconditionError: Error while reading resource variable block3_conv3/bias from Container: localhost. This could mean that the variable was uninitialized. Not found: Container localhost does not exist. (Could not find resource: localhost/block3_conv3/bias)

我尝试使this solution正常工作,但是我无法弄清楚如何使其在Keras / flask网络服务器上正常工作。

Full stacktrace. run_keras_server.py

0 个答案:

没有答案