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, macOS 11.2.3 or Windows1 10 - 64 bit
  • Python* 3.7, 3.8 or 3.9
  • TensorFlow* v2.7.0

1Windows release is in preview mode and supports only Python3.9

This OpenVINO™ integration with TensorFlow package comes with pre-built libraries of OpenVINO™ version 2021.4.2 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 -U pip
      pip3 install tensorflow==2.7.0
      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 installation instructions on Windows please refer to OpenVINO™ integration with TensorFlow for Windows

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.7.0
    OpenVINO integration with TensorFlow version: b'1.1.0'
    OpenVINO version used for this build: b'2021.4.2'
    TensorFlow version used for this build: v2.7.0
    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.

Try it on Intel® DevCloud

Sample tutorials are also hosted on Intel® DevCloud. The demo applications are implemented using Jupyter Notebooks. You can interactively execute them on Intel® DevCloud nodes, compare the results of OpenVINO™ integration with TensorFlow, native TensorFlow and OpenVINO™.

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.1.0-cp39-cp39-win_amd64.whl (34.1 MB view details)

Uploaded CPython 3.9 Windows x86-64

openvino_tensorflow-1.1.0-cp39-cp39-macosx_11_0_x86_64.whl (23.0 MB view details)

Uploaded CPython 3.9 macOS 11.0+ x86-64

openvino_tensorflow-1.1.0-cp38-cp38-macosx_11_0_x86_64.whl (23.0 MB view details)

Uploaded CPython 3.8 macOS 11.0+ x86-64

openvino_tensorflow-1.1.0-cp37-cp37m-macosx_11_0_x86_64.whl (23.0 MB view details)

Uploaded CPython 3.7m macOS 11.0+ x86-64

File details

Details for the file openvino_tensorflow-1.1.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: openvino_tensorflow-1.1.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 34.1 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

File hashes

Hashes for openvino_tensorflow-1.1.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b536e3399d07d22f1a83630f7d431171ab0dcb11092547aa91e895be9ed74dd9
MD5 962117317fd793aba34ebc0a61fde94e
BLAKE2b-256 6c2db65f8892c0b752d4fddf3c1bcabcff38c3b95c1c2c76e821e4b4ca3c598d

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-1.1.0-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for openvino_tensorflow-1.1.0-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9e0e46d40978f448c31457d937f88743c03789cbb35f15ac9cec6f32beb949e7
MD5 f2845f0f57274649f8586ad4430a87a3
BLAKE2b-256 30d2cfbfb55dffe1d331f3f2e2718358ab6eaa69efabb6900dd0c68d7bbca745

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-1.1.0-cp39-cp39-macosx_11_0_x86_64.whl.

File metadata

  • Download URL: openvino_tensorflow-1.1.0-cp39-cp39-macosx_11_0_x86_64.whl
  • Upload date:
  • Size: 23.0 MB
  • Tags: CPython 3.9, macOS 11.0+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

File hashes

Hashes for openvino_tensorflow-1.1.0-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 e54a5eb1f2c1a4e9cb590ccf6364877c0ed84cb548f6c8da48bddc7953230076
MD5 0406ac512be6907fa03de1466884b63d
BLAKE2b-256 26674cd676524faa7e48ce12170a00dd41451fc5971baede3dcfe612cc2915f3

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-1.1.0-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for openvino_tensorflow-1.1.0-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3f070cfae12039dbdc45fa94871b28dc542daa92979ccfc6f296e1784925e7a7
MD5 046e5b9cd1f752c94abcd57a166a0ea3
BLAKE2b-256 2721bf8c39ed334f86f65ff30d62558923f24152b9211b33c7065d7290e687ad

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-1.1.0-cp38-cp38-macosx_11_0_x86_64.whl.

File metadata

  • Download URL: openvino_tensorflow-1.1.0-cp38-cp38-macosx_11_0_x86_64.whl
  • Upload date:
  • Size: 23.0 MB
  • Tags: CPython 3.8, macOS 11.0+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

File hashes

Hashes for openvino_tensorflow-1.1.0-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 bd07f38980bc31c36cc10d6232dcc4be90fc4ae8d22310a0e9fc3b6e5e273077
MD5 1911d7fd0efb4c9153c5b6a1d465087a
BLAKE2b-256 c75a6fe9eba13776758355e525df4fccfff50ba8ef5037981dc3dfc5f9f21088

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-1.1.0-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for openvino_tensorflow-1.1.0-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d7f757e6ba99f0572ff6fce18854a7f73d804a241a07c293aa4419d24d801e3b
MD5 5d55307d68c07606511bd5736328fdea
BLAKE2b-256 0442bbe9d73af95c3c035aefcc1d3a5288cbde2e312dfecffa8464056b69dfda

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-1.1.0-cp37-cp37m-macosx_11_0_x86_64.whl.

File metadata

  • Download URL: openvino_tensorflow-1.1.0-cp37-cp37m-macosx_11_0_x86_64.whl
  • Upload date:
  • Size: 23.0 MB
  • Tags: CPython 3.7m, macOS 11.0+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

File hashes

Hashes for openvino_tensorflow-1.1.0-cp37-cp37m-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 da9080c9fdadb9c221fbaff92f1c939986177ad007730ce23f988f7aadf064c4
MD5 3f2bfe306f0a400c33ca88908afe4f17
BLAKE2b-256 b437d3ef07576f310e0d0f8bff80ba5eacfed9d7daed231b7dc5ff48248ececd

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