Code Monkey home page Code Monkey logo

openvino-ncs2-python-samples's Introduction

Openvino IE(Inference Engine) python samples - NCS2

before you start, make sure you have

  1. Dev machine with Intel 6th or above Core CPU (Ubuntu is preferred, a Win 10 should also work)
  2. Openvino 2018R5 or later installed and configured for NCS devices
  3. physical NCS2 VPU (the first gen NCS should also work, with a much lower perf)
  4. mobilenet-ssd caffe model downloaded, IR model file generated with MO ( what is IR/MO?)

how to run (remember to source /opt/intel/computer_vision_sdk/bin/setup_vars.sh in each new terminal)

  1. the basic "hello world" sample using IE sync API (you get a FPS around 16FPS on a i5-7200u in terminal outputs):

python3 sync_api.py

  1. the async sample using IE async API (this will boost you to 29FPS on a i5-7200u):

python3 async_api.py

  1. the 'async API' + 'multiple threads' implementation (this will boost you to 39FPS on a i5-7200u):

python3 async_api_multi-threads.py

  1. the 'async API' + 'multiple threads' + 'simutaneous inference requests' implementation (this will boost you to 46FPS on a i5-7200u if $requests_number is 4):

python3 async_api_multi-threads_multi-requests.py [requests_number]

  1. the 'async API' + 'multiple threads' + 'simutaneous inference requests' + 'multiple ncs' implementation (this will boost you to 87FPS on a i5-7200u if $ncs_number is 2 and $requests_number is 4), please note that we need to equip 2 or more NCS2 here

python3 async_api_multi-threads_multi-requests_multi-ncs.py [ncs_number] [requests_number]

  1. the 'async API' + 'multiple processes' + 'simutaneous inference requests' + 'multiple ncs' implementation (this will boost you to 89FPS on a i5-7200u if $ncs_number is 2 and $requests_number is 4), please note that we need to equip 2 or more NCS2 here

python3 async_api_multi-processes_multi-requests_multi-ncs.py [ncs_number] [requests_number]

openvino-ncs2-python-samples's People

Contributors

decemberpei avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.