Home
Softono
keras_openvino

keras_openvino

Open source Jupyter Notebook
34
Stars
16
Forks
4
Issues
4
Watchers
7 years
Last Commit

About keras_openvino

How to run Keras model inference x3 times faster with CPU and Intel OpenVINO

Platforms

Web Self-hosted

Languages

Jupyter Notebook

Links

How to run Keras model inference x3 times faster with CPU and Intel OpenVINO | DLology Blog

System requirement

  • 6th-8th Generation Intel® Core™

  • Intel® Xeon® v5 family

  • Intel® Xeon® v6 family

    Operating Systems

  • Ubuntu* 16.04.3 long-term support (LTS), 64-bit

  • CentOS* 7.4, 64-bit

  • Windows* 10, 64-bit

How to Run

Require Python 3.5+ and Jupyter notebook installed

Clone or download this repo

git clone https://github.com/Tony607/keras_openvino

Install OpenVINO

Setup OpenVINO on your machine, choose your OS on this page, follow the instruction to download and install it.

Install required libraries

pip3 install -r requirements.txt

Run the setupvars.bat before calling jupyter notebook.

"C:\Program Files (x86)\IntelSWTools\openvino\bin\setupvars.bat"

Or in Linux add the following line to ~/.bashrc

source /opt/intel/openvino/bin/setupvars.sh

In a terminal run,

jupyter notebook

In the opened browser window open

keras-openvino-ImageNet.ipynb

Run Inference on NCS (Neural compute stick 1 or 2)

Once you have the inference model, plugin the NCS, run this script.

python3 ncs_inference.py