Skip to main content

OpenVINO™ integration with TensorFlow

Project description

OpenVINO™ integration with TensorFlow

OpenVINO™ integration with TensorFlow is a product designed for TensorFlow* developers who want to get started with OpenVINO™ in their inferencing applications. This product delivers OpenVINO™ inline optimizations which enhance inferencing performance with minimal code modifications. OpenVINO™ integration with TensorFlow accelerates inference across many AI models on a variety of Intel® silicon such as:

  • Intel® CPUs
  • Intel® integrated GPUs
  • Intel® Movidius™ Vision Processing Units - referred to as VPU
  • Intel® Vision Accelerator Design with 8 Intel Movidius™ MyriadX VPUs - referred to as VAD-M or HDDL

[Note: For maximum performance, efficiency, tooling customization, and hardware control, we recommend the developers to adopt native OpenVINO™ APIs and its runtime.]

Installation

Requirements

  • Ubuntu 18.04, 20.04 or macOS 11.2.3
  • Python* 3.6, 3.7, 3.8 or 3.9
  • TensorFlow* v2.5.1

This OpenVINO™ integration with TensorFlow package comes with pre-built libraries of OpenVINO™ version 2021.4.1 meaning you do not have to install OpenVINO™ separately. This package supports:

  • Intel® CPUs

  • Intel® integrated GPUs

  • Intel® Movidius™ Vision Processing Units (VPUs)

      pip3 install pip==21.0.1
      pip3 install tensorflow==2.5.1
      pip3 install -U openvino-tensorflow
    

To leverage Intel® Vision Accelerator Design with Movidius™ (VAD-M) for inference, please refer to: OpenVINO™ integration with TensorFlow alongside the Intel® Distribution of OpenVINO™ Toolkit.

For more details on installation please refer to INSTALL.md, and for build from source options please refer to BUILD.md

Verify Installation

Once you have installed OpenVINO™ integration with TensorFlow, you can use TensorFlow to run inference using a trained model.

To check if OpenVINO™ integration with TensorFlow is properly installed, run

python3 -c "import tensorflow as tf; print('TensorFlow version: ',tf.__version__);\
            import openvino_tensorflow; print(openvino_tensorflow.__version__)"

This should produce an output like:

    TensorFlow version:  2.5.1
    OpenVINO integration with TensorFlow version: b'1.0.0'
    OpenVINO version used for this build: b'2021.4.1'
    TensorFlow version used for this build: v2.5.1
    CXX11_ABI flag used for this build: 0

Usage

By default, Intel® CPU is used to run inference. However, you can change the default option to either Intel® integrated GPU or Intel® VPU for AI inferencing. Invoke the following function to change the hardware on which inferencing is done.

openvino_tensorflow.set_backend('<backend_name>')

Supported backends include 'CPU', 'GPU', 'GPU_FP16', and 'MYRIAD'.

To determine what processing units are available on your system for inference, use the following function:

openvino_tensorflow.list_backends()

For more API calls and environment variables, see USAGE.md.

[Note: For the best results with TensorFlow, it is advised to enable oneDNN Deep Neural Network Library (oneDNN) by setting the environment variable TF_ENABLE_ONEDNN_OPTS=1]

[Note: If a CUDA capable device is present in the system then set the environment variable CUDA_VISIBLE_DEVICES to -1]

Examples

To see what you can do with OpenVINO™ integration with TensorFlow, explore the demos located in the examples repository.

License

OpenVINO™ integration with TensorFlow is licensed under Apache License Version 2.0. By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.

Support

Please submit your questions, feature requests and bug reports via GitHub issues.

How to Contribute

We welcome community contributions to OpenVINO™ integration with TensorFlow. If you have an idea for improvement:

We will review your contribution as soon as possible. If any additional fixes or modifications are necessary, we will guide you and provide feedback. Before you make your contribution, make sure you can build OpenVINO™ integration with TensorFlow and run all the examples with your fix/patch. If you want to introduce a large feature, create test cases for your feature. Upon the verification of your pull request, we will merge it to the repository provided that the pull request has met the above mentioned requirements and proved acceptable.


* Other names and brands may be claimed as the property of others.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

openvino_tensorflow-1.0.0-3-cp39-cp39-macosx_11_0_x86_64.whl (22.9 MB view details)

Uploaded CPython 3.9 macOS 11.0+ x86-64

openvino_tensorflow-1.0.0-3-cp38-cp38-macosx_11_0_x86_64.whl (22.9 MB view details)

Uploaded CPython 3.8 macOS 11.0+ x86-64

openvino_tensorflow-1.0.0-3-cp37-cp37m-macosx_11_0_x86_64.whl (22.9 MB view details)

Uploaded CPython 3.7m macOS 11.0+ x86-64

openvino_tensorflow-1.0.0-3-cp36-cp36m-macosx_11_0_x86_64.whl (22.9 MB view details)

Uploaded CPython 3.6m macOS 11.0+ x86-64

File details

Details for the file openvino_tensorflow-1.0.0-3-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for openvino_tensorflow-1.0.0-3-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 abb052bc4d2d12adb109c9195db4907db0d8011e83bfe724135fab5230c375a6
MD5 d836219fccbbf65a1da3673709eb88bd
BLAKE2b-256 f1f02a32494608f12cb5d03f1453325d56a257ae01e4765962017f315506e1b2

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-1.0.0-3-cp39-cp39-macosx_11_0_x86_64.whl.

File metadata

  • Download URL: openvino_tensorflow-1.0.0-3-cp39-cp39-macosx_11_0_x86_64.whl
  • Upload date:
  • Size: 22.9 MB
  • Tags: CPython 3.9, macOS 11.0+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.7.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.6.9

File hashes

Hashes for openvino_tensorflow-1.0.0-3-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 fa3d0bd9a9c94f80bb04ed6834aa7dcd9f94f7648ecf5e8aa892587592705f53
MD5 58fe84f2d0b20ba301167b9d121960ea
BLAKE2b-256 e26dae0fc3a89d9a6c4769a4bbbea3ff276b943edb166e32591ff2146c8603fe

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-1.0.0-3-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for openvino_tensorflow-1.0.0-3-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fa77768830dbccde9085bd7195dae021f3c9b259f03c8b8ccdc227ba2425e560
MD5 1f1ac3729a949780870802b92264179f
BLAKE2b-256 98c58fa49d62cf715f9edc5855a2c0d4288dccdbc2fc90c5123cf32307e936da

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-1.0.0-3-cp38-cp38-macosx_11_0_x86_64.whl.

File metadata

  • Download URL: openvino_tensorflow-1.0.0-3-cp38-cp38-macosx_11_0_x86_64.whl
  • Upload date:
  • Size: 22.9 MB
  • Tags: CPython 3.8, macOS 11.0+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.7.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.6.9

File hashes

Hashes for openvino_tensorflow-1.0.0-3-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 9b6c2d482d2dc962f99c39412f0de9cc7963394d10a83a2984e2e1eaf3e2a46a
MD5 342dfbd78a07a367d57485a9f70c4b8e
BLAKE2b-256 6cb080764d5f4538262f20d5cfc78876522ac3e602e310d90e9ef2418b1d18fd

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-1.0.0-3-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for openvino_tensorflow-1.0.0-3-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 de2b57c2b8d3bab4a25aa8e7a9a2053704e697f3116ad9ce31923e736342e48a
MD5 73019e5417d1a60e8cb1f6f67596841d
BLAKE2b-256 49becd37c7bea7b30e2a1bf5c73cc2fde938ffcf3042710cf4e593297132acb9

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-1.0.0-3-cp37-cp37m-macosx_11_0_x86_64.whl.

File metadata

  • Download URL: openvino_tensorflow-1.0.0-3-cp37-cp37m-macosx_11_0_x86_64.whl
  • Upload date:
  • Size: 22.9 MB
  • Tags: CPython 3.7m, macOS 11.0+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.7.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.6.9

File hashes

Hashes for openvino_tensorflow-1.0.0-3-cp37-cp37m-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 385b4389c0764c020e28dfbd438158bacad388cacecc15d0a5a5b8499c6cb174
MD5 cb64ee335b381c93b4ab0bda17888cca
BLAKE2b-256 ee29cdc5680010fc4902042edddd20e1a37503f22e09492af638b44deb7542be

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-1.0.0-3-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for openvino_tensorflow-1.0.0-3-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fc3e9637ecc7a1ece499fb9668c0b1fe09a4d298b3a77ab4fd5f28abbe37bca6
MD5 778e334d24020b836c2c0ce35df556e2
BLAKE2b-256 9d8ed9d99039aaffad7fd52df9d5f3c8aa00b6b62c78b164b742fd3dec08609d

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-1.0.0-3-cp36-cp36m-macosx_11_0_x86_64.whl.

File metadata

  • Download URL: openvino_tensorflow-1.0.0-3-cp36-cp36m-macosx_11_0_x86_64.whl
  • Upload date:
  • Size: 22.9 MB
  • Tags: CPython 3.6m, macOS 11.0+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.7.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.6.9

File hashes

Hashes for openvino_tensorflow-1.0.0-3-cp36-cp36m-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 f13fc85a04b5a13d6235b45d4d63390a427f14e6dcc91f13dbb48d76df74fad5
MD5 d5effad71f1b17e76c9c4b1fd453d226
BLAKE2b-256 f3667de852e469930d1326fa3c360f40b2be117745bd6635f1c8cb0f6d176ae8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page