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.1'
    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.1-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.1-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.1-cp37-cp37m-macosx_11_0_x86_64.whl (22.9 MB view details)

Uploaded CPython 3.7m macOS 11.0+ x86-64

File details

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

File metadata

File hashes

Hashes for openvino_tensorflow-1.0.1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 348bac3675e1952a93e3c3fc3b99fb3bd5fdf895621f616576018c45fc2c7a98
MD5 af5bb43e07a46c68f43706c91fe731ae
BLAKE2b-256 e5e30bbe77729c076b1593e301a119f765501baf59d03ef527e0776fc26fa98c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openvino_tensorflow-1.0.1-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.1-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 0c6ebd3a3555cb48001c12c3f4e5536276e8772b1b8f7448a5417249e6b51fc2
MD5 70f09a61c808984db4ab650ce974996d
BLAKE2b-256 55d7c248daba6e25877e47dbbb198871db3e942954d60adcc98ade1756af0c56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for openvino_tensorflow-1.0.1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e2cc775dd207e7d3ebf3b4240588e8d43e993512165ab5abdd26714ef37d9c4c
MD5 3c05c9c1b3c5a608ded9a917a9231c6b
BLAKE2b-256 3f57d96766b4107f86225701bac2f4446c605b304d549384a48e6f82dff3fe4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openvino_tensorflow-1.0.1-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.1-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 4f44825f67a88b24b1151eafe454357c770ac6b45fcd09031b7a0e7a2fd795f6
MD5 86d5972bc508655572180b4bdb043440
BLAKE2b-256 90b5add1731954ec2b19a7f57e293c9960c82eb18df4671c5feffa9ae793d8bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for openvino_tensorflow-1.0.1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6493118166d908bc7b1f4d0c25962cfbc8f5cdf94007db653db5dbf507eb1845
MD5 4f2524c82f6568c19407ac1a5cbc7d9d
BLAKE2b-256 66675a7977f85d54826e446b433284e1c201ce54ed84ab5abeab5235165ee915

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openvino_tensorflow-1.0.1-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.1-cp37-cp37m-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 f0ef8b343dd3810ed124245fb963adbe15f7b204184714790b647ec749c1fe32
MD5 62d8f26e43f358fc9b1a9d2cbbe51ff1
BLAKE2b-256 9357cce9d5323523e5d60e13a61e08d57cdd0138fbc51d646d7f950539d9adf3

See more details on using hashes here.

File details

Details for the file openvino_tensorflow-1.0.1-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for openvino_tensorflow-1.0.1-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 97c6fcd9d417ffc2462e3a90b4bdc21557b7da270093a73302c9c46770d6e2f5
MD5 4c518fbad33e9c40c55e891f664a6c60
BLAKE2b-256 8eb4a2e5877aabf12ccd862ebf1b683b0c0331202830208738cf8288cb0196c9

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