OpenVINO™与TensorFlow集成的运行时Docker镜像,适用于Ubuntu 20.04 LTS,通过添加两行代码即可利用OpenVINO优化,加速TensorFlow推理在Intel CPU、iGPU、VPU及VAD-M等设备上的性能。
Latest tag
2.2.0,latest
About OpenVINO™ integration with TensorFlow
OpenVINO™ integration with TensorFlow is designed for TensorFlow* developers who want to get started with https://software.intel.com/content/www/us/en/develop/tools/openvino-toolkit.html in their inferencing applications. TensorFlow* developers can now take advantage of https://software.intel.com/content/www/us/en/develop/tools/openvino-toolkit.html toolkit optimizations in TensorFlow inference applications across a wide range of Intel® compute devices by adding just two lines of code.
import openvino_tensorflow openvino_tensorflow.set_backend('<backend_name>')
This product delivers https://software.intel.com/content/www/us/en/develop/tools/openvino-toolkit.html 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.]
GitHub: https://github.com/openvinotoolkit/openvino_tensorflow/
Documentation: https://github.com/openvinotoolkit/openvino_tensorflow/tree/master/docs
Dockerfiles to build this image can be found at: https://github.com/openvinotoolkit/openvino_tensorflow/tree/master/docker
OpenVINO™ integration with TensorFlow Runtime Docker image for Ubuntu* 20.04 LTS
This image, tagged 2.2.0, contains all required runtime python packages, and shared libraries to support execution of a TensorFlow Python app with the OpenVINO™ backend on CPU, GPU, VPU, and VAD-M. By default, it hosts a Jupyter server with an Image Classification and an Object Detection sample that demonstrate the performance benefits of using OpenVINO™ integration with TensorFlow.
Launch the Jupyter server with CPU access:
docker run -it --rm \ -p 8888:8888 \ openvino/openvino_tensorflow_ubuntu20_runtime:2.2.0
Launch the Jupyter server with iGPU access:
docker run -it --rm \ -p 8888:8888 \ --device-cgroup-rule='c 189:* rmw' \ --device /dev/dri:/dev/dri \ openvino/openvino_tensorflow_ubuntu20_runtime:2.2.0
Launch the Jupyter server with MYRIAD access:
docker run -it --rm \ -p 8888:8888 \ --device-cgroup-rule='c 189:* rmw' \ -v /dev/bus/usb:/dev/bus/usb \ openvino/openvino_tensorflow_ubuntu20_runtime:2.2.0
Launch the Jupyter server with VAD-M access:
docker run -itu root:root --rm \ -p 8888:8888 \ --device-cgroup-rule='c 189:* rmw' \ --mount type=bind,source=/var/tmp,destination=/var/tmp \ --device /dev/ion:/dev/ion \ -v /dev/bus/usb:/dev/bus/usb \ openvino/openvino_tensorflow_ubuntu20_runtime:2.2.0
Run image with runtime target /bin/bash for container shell with CPU, iGPU, and MYRIAD device access
docker run -itu root:root --rm \ -p 8888:8888 \ --device-cgroup-rule='c 189:* rmw' \ --device /dev/dri:/dev/dri \ --mount type=bind,source=/var/tmp,destination=/var/tmp \ -v /dev/bus/usb:/dev/bus/usb \ openvino/openvino_tensorflow_ubuntu20_runtime:2.2.0 /bin/bash
Run image on Windows* OS
The image can also run on Windows* OS with OpenVINO™ backend support for CPU and iGPU.
Launch the Jupyter server with CPU access:
docker run -it --rm \ -p 8888:8888 \ openvino/openvino_tensorflow_ubuntu20_runtime:2.2.0
Launch the Jupyter server with iGPU access:
Pre-requisites :
-
Windows* 10 21H2 or Windows* 11 with WSL-2
-
https://www.intel.com/content/www/us/en/download/***/intel-graphics-windows-dch-drivers.html >= 30.0.100.9684
docker run -it --rm \ -p 8888:8888 \ --device /dev/dxg:/dev/dxg \ --volume /usr/lib/wsl:/usr/lib/wsl \ openvino/openvino_tensorflow_ubuntu20_runtime:2.2.0
OpenVINO™ integration with TensorFlow Runtime Docker image for https://github.com/tensorflow/serving on Ubuntu* 20.04 LTS
This image, tagged 2.2.0-serving, provides out-of-the-box integration with TensorFlow models by making it easy to deploy new algorithms and experiments. The tensorflow_model_server executable in this image is built with OpenVINO™ and provides performance benefits on Intel backends including CPU, GPU, VPU, and VAD-M.
Here is an example that serves a Resnet50 model using this image and a client script that performs inference on the model using the REST API.
-
Download https://storage.googleapis.com/tfhub-modules/google/imagenet/resnet_v2_50/classification/5.tar.gz from TF Hub and untar its contents into the folder
resnet_v2_50_classifiation/5 -
Start serving container for the resnet50 model:
To run on CPU backend:
docker run -it --rm \ -p 8501:8501 \ -v <path to resnet_v2_50_classifiation>:/models/resnet \ -e MODEL_NAME=resnet \ openvino/openvino_tensorflow_ubuntu20_runtime:2.2.0-servingTo run on iGPU:
docker run -it --rm \ -p 8501:8501 \ --device-cgroup-rule='c 189:* rmw' \ --device /dev/dri:/dev/dri \ -v <path to resnet_v2_50_classifiation>:/models/resnet \ -e MODEL_NAME=resnet \ -e OPENVINO_TF_BACKEND=GPU \ openvino/openvino_tensorflow_ubuntu20_runtime:2.2.0-servingTo run on MYRIAD:
docker run -it --rm \ -p 8501:8501 \ --device-cgroup-rule='c 189:* rmw' \ -v /dev/bus/usb:/dev/bus/usb \ -v <path to resnet_v2_50_classifiation>:/models/resnet \ -e MODEL_NAME=resnet \ -e OPENVINO_TF_BACKEND=MYRIAD \ openvino/openvino_tensorflow_ubuntu20_runtime:2.2.0-servingTo run on VAD-M:
docker run -itu root:root --rm \ -p 8501:8501 \ --device-cgroup-rule='c 189:* rmw' \ -v /dev/bus/usb:/dev/bus/usb \ --mount type=bind,source=/var/tmp,destination=/var/tmp \ --device /dev/ion:/dev/ion \ -v <path to resnet_v2_50_classifiation>:/models/resnet \ -e MODEL_NAME=resnet \ -e OPENVINO_TF_BACKEND=VAD-M \ openvino/openvino_tensorflow_ubuntu20_runtime:2.2.0-serving -
Run the script to send inference request from client and get predictions from server.
wget https://raw.githubusercontent.com/tensorflow/serving/master/tensorflow_serving/example/resnet_client.py python resnet_client.py
All related environmental variables that applies during the execution of OpenVINO™ integration with TensorFlow is applicable while running through containers also. For example, to disable OpenVINO™ integration with TensorFlow while starting a TensorFlow Serving container, simply provide OPENVINO_TF_DISABLE=1 as one of the environmental variables of the docker run command. See https://github.com/openvinotoolkit/openvino_tensorflow/blob/master/docs/USAGE.md for more such environmental variables.
docker run -it --rm \ -p 8501:8501 \ -v <path to resnet_v2_50_classifiation>:/models/resnet \ -e MODEL_NAME=resnet \ -e OPENVINO_TF_DISABLE=1 \ openvino/openvino_tensorflow_ubuntu20_runtime:2.2.0-serving
Licenses
Copyright © 2022 Intel Corporation
These images of OpenVINO™ integration with TensorFlow are licensed under https://github.com/openvinotoolkit/openvino_tensorflow/blob/master/LICENSE.
Components:
- https://hub.docker.com/r/openvino/ubuntu18_runtime
- https://www.tensorflow.org/
* Other names and brands may be claimed as the property of others.
openvino 命名空间的其他可用镜像:
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 openvino_tensorflow_ubuntu20_runtime 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务