使用烧瓶在 LAMP (python) 堆栈上部署 keras(带有 theano 后端)?
Deploy keras (with theano backend) on a LAMP (python) stack with flask?
我正在尝试在计算引擎上使用 keras 和 theano 部署 Flask 网络应用程序。
当我 import keras
和 运行 sudo service apache2 restart,服务器进入循环 ("waiting for IP address")。
error.log 给出以下错误
[:error] [pid 1588:tid 140666780755712] Using Theano backend.
我在 ubuntu 14.04
我让 keras 在计算引擎上工作。要导入重型库,我们需要在 .conf
文件中设置某些参数。
将以下代码添加到您的 /etc/apache2/sites-enables/yourapp.conf
文件中:
WSGIDaemonProcess yourapp user=you group=somegroup processes=1 threads=5
<Directory /home/directory/to/webserver/html/appdir/app.wsgi>
WSGIProcessGroup yourapp
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
有关详细信息,请参阅此 link - http://cmry.github.io/notes/bottle
我正在尝试在计算引擎上使用 keras 和 theano 部署 Flask 网络应用程序。
当我 import keras
和 运行 sudo service apache2 restart,服务器进入循环 ("waiting for IP address")。
error.log 给出以下错误
[:error] [pid 1588:tid 140666780755712] Using Theano backend.
我在 ubuntu 14.04
我让 keras 在计算引擎上工作。要导入重型库,我们需要在 .conf
文件中设置某些参数。
将以下代码添加到您的 /etc/apache2/sites-enables/yourapp.conf
文件中:
WSGIDaemonProcess yourapp user=you group=somegroup processes=1 threads=5
<Directory /home/directory/to/webserver/html/appdir/app.wsgi>
WSGIProcessGroup yourapp
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
有关详细信息,请参阅此 link - http://cmry.github.io/notes/bottle