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.8.0

1Windows release supports only Python3.9

This OpenVINO™ integration with TensorFlow package comes with pre-built libraries of OpenVINO™ version 2022.1.0 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.8.0
      pip3 install openvino-tensorflow==2.0.0
    

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.8.0
    OpenVINO integration with TensorFlow version: b'2.0.0'
    OpenVINO version used for this build: b'2022.1.0'
    TensorFlow version used for this build: v2.8.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.

Docker Support

Dockerfiles for Ubuntu* 18.04, Ubuntu* 20.04, and TensorFlow* Serving are provided which can be used to build runtime Docker* images for OpenVINO™ integration with TensorFlow on CPU, GPU, VPU, and VAD-M. For more details see docker readme.

Prebuilt Images

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

Uploaded CPython 3.9 Windows x86-64

openvino_tensorflow-2.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (31.9 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

openvino_tensorflow-2.0.0-cp39-cp39-macosx_11_0_x86_64.whl (24.9 MB view details)

Uploaded CPython 3.9 macOS 11.0+ x86-64

openvino_tensorflow-2.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (31.9 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

openvino_tensorflow-2.0.0-cp38-cp38-macosx_11_0_x86_64.whl (24.9 MB view details)

Uploaded CPython 3.8 macOS 11.0+ x86-64

openvino_tensorflow-2.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (31.9 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

openvino_tensorflow-2.0.0-cp37-cp37m-macosx_11_0_x86_64.whl (24.9 MB view details)

Uploaded CPython 3.7m macOS 11.0+ x86-64

File details

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

File metadata

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

File hashes

Hashes for openvino_tensorflow-2.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a18f79f27316a5940b251f81451d31cfa2e343e83bb0488dfff0dd048b8e163b
MD5 591f645b848215fbe3c7d0757246002d
BLAKE2b-256 ee42a4459dfb6dc8a3b0448b8b10fa7f21b8ed12ab71692b0b7e0f9bc009c491

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-2.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for openvino_tensorflow-2.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e00fb10985b000baa8c37969ba1d8d772bc71df358a85ad17486266ae85f9e40
MD5 fbf5e9d1ac09fd5883d14fe81efd67da
BLAKE2b-256 aa0976c1938885344215c3c3cdb063867057a4049e041e40fd4bd21fdd0ed798

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for openvino_tensorflow-2.0.0-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 9e742d12657ecbe8e5281963f2c59b052830efc9d2ef06fe126b06ba43e64c2d
MD5 7922a500950cd9e9f4952df2f94181e6
BLAKE2b-256 185c4bf05844afb376a57e25989155cb17ac3b071165040322d9a787dbccfe2a

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-2.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for openvino_tensorflow-2.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 175232cc4a9198f4e2fc742c0d5619ed48748e265cfe0167b8e689fd6f8718ea
MD5 0ad186e03efd303704a77688aa20ed1d
BLAKE2b-256 7d20c8b425fff6fb92570309d137b85f4d367f10000cd7c3c06bbebc1e070b31

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for openvino_tensorflow-2.0.0-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 9e11211ceebcf8ddc20014709e85d931f0ad66161df3d83aa893df16ebbbecbd
MD5 a772c2d03a831ea44f05a768f93b17cc
BLAKE2b-256 da3e2287869c0e2586b5602652a873107b34096e7fad5a4d4d0eda393265de88

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-2.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for openvino_tensorflow-2.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6fda75430a0180d450d120bc63db31231127c33691f26b8acd906ca8db92f3ce
MD5 3f1c45dfa75b5e61b7ee40ffd921fd5b
BLAKE2b-256 0e6e0f2ac4c63f9659bcdec1a1af621c6c64e6ecb17d6ec1c1c8d30c8912b3d8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for openvino_tensorflow-2.0.0-cp37-cp37m-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 394aca9aaa6936a2c3e3f81c2bf4f57ff340e25aa6160819cd726b3744e1b036
MD5 b7be1b16e70183a86c4c35df12d74afe
BLAKE2b-256 263956411b2ce18f03208bdd044bc173d69b763df3f28ae3fd5c665fbf7bb001

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