Community
cancel
Showing results for 
Search instead for 
Did you mean: 
taross-f
Beginner
99 Views

Cannot get response with OpenVINO Python and uWSGI server

Hi

I uses OpenVINO Python API with Flask api servers.

With Flask development server (which is kicked by `flask run` command) I got responses correctly from `ie_api.ExecutableNetwork.start_async()` and `ie_api.InferRequest.wait(-1)`. But with uWSGI server I got no response from the same codes. It stops on `InferRequest.wait(-1)` line. I would like to use uWSGI server on production environment. Is there a solution?

Environment:

  • Python3.6
  • l_openvino_toolkit_p_2020.1.023
  • Ubuntu18.04 on Docker
  • face-detection-adas-0001/FP32/face-detection-adas-0001

Thank you.

0 Kudos
2 Replies
Iffa_Intel
Moderator
99 Views

Greetings,

You can refer here to properly configure Openvino with server and host it later on.

1. Set up opencv in cloud:  https://medium.com/@vahiwe/setting-up-openvino-in-the-cloud-b99599f157eb

you should able to run any OpenVINO™ project on this server now

2. Deploy Django and Flask Applications in the cloud using Nginx, Gunicorn and Supervisor (Ubuntu 18.04):

https://medium.com/@vahiwe/deploy-django-and-flask-applications-in-the-cloud-using-nginx-gunicorn-an...

These are all required installation, configuration and build steps in this guide to use Gunicorn, Supervisor and Nginx in running your Django/Flask applications. You can start hostting your applications in the cloud after this step.

3. This is how you can Deploy Django and Flask Applications in the cloud using Nginx, Gunicorn and Supervisor (Ubuntu 18.04):

https://medium.com/@vahiwe/deploy-django-and-flask-applications-in-the-cloud-using-nginx-gunicorn-an...

 

Hope my answer helps!.

Sincerely,

Iffa

Iffa_Intel
Moderator
99 Views

Hi,

Im closing this case. If there are any other inquiries please help to create a new thread.

Thanks & have a great day ahead!.

Sincerely,

Iffa