[DOCS] Hyperlink 23.3 update for master (#21908)
* link update * link update * link update * Update dev_api_references.rst * Update dev_api_references.rst * Update apidoc.py * notebooks links * notebook link update * filename update * link update * link update api
This commit is contained in:
parent
5c1e16041f
commit
c0d564a465
24
README.md
24
README.md
|
|
@ -67,18 +67,18 @@ The OpenVINO™ Runtime can infer models on different hardware devices. This sec
|
|||
<tbody>
|
||||
<tr>
|
||||
<td rowspan=2>CPU</td>
|
||||
<td> <a href="https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_supported_plugins_CPU.html#doxid-openvino-docs-o-v-u-g-supported-plugins-c-p-u">Intel CPU</a></tb>
|
||||
<td> <a href="https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_CPU.html#doxid-openvino-docs-o-v-u-g-supported-plugins-c-p-u">Intel CPU</a></tb>
|
||||
<td><b><i><a href="./src/plugins/intel_cpu">openvino_intel_cpu_plugin</a></i></b></td>
|
||||
<td>Intel Xeon with Intel® Advanced Vector Extensions 2 (Intel® AVX2), Intel® Advanced Vector Extensions 512 (Intel® AVX-512), and AVX512_BF16, Intel Core Processors with Intel AVX2, Intel Atom Processors with Intel® Streaming SIMD Extensions (Intel® SSE), Intel® Advanced Matrix Extensions (Intel® AMX)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> <a href="https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_supported_plugins_CPU.html#doxid-openvino-docs-o-v-u-g-supported-plugins-c-p-u">ARM CPU</a></tb>
|
||||
<td> <a href="https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_CPU.html#doxid-openvino-docs-o-v-u-g-supported-plugins-c-p-u">ARM CPU</a></tb>
|
||||
<td><b><i><a href="./src/plugins/intel_cpu">openvino_arm_cpu_plugin</a></i></b></td>
|
||||
<td>Raspberry Pi™ 4 Model B, Apple® Mac mini with Apple silicon
|
||||
</tr>
|
||||
<tr>
|
||||
<td>GPU</td>
|
||||
<td><a href="https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_supported_plugins_GPU.html#doxid-openvino-docs-o-v-u-g-supported-plugins-g-p-u">Intel GPU</a></td>
|
||||
<td><a href="https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_GPU.html#doxid-openvino-docs-o-v-u-g-supported-plugins-g-p-u">Intel GPU</a></td>
|
||||
<td><b><i><a href="./src/plugins/intel_gpu">openvino_intel_gpu_plugin</a></i></b></td>
|
||||
<td>Intel Processor Graphics, including Intel HD Graphics and Intel Iris Graphics</td>
|
||||
</tr>
|
||||
|
|
@ -96,22 +96,22 @@ OpenVINO™ Toolkit also contains several plugins which simplify loading models
|
|||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><a href="https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_supported_plugins_AUTO.html">Auto</a></td>
|
||||
<td><a href="https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_AUTO.html">Auto</a></td>
|
||||
<td><b><i><a href="./src/plugins/auto">openvino_auto_plugin</a></i></b></td>
|
||||
<td>Auto plugin enables selecting Intel device for inference automatically</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_Automatic_Batching.html">Auto Batch</a></td>
|
||||
<td><a href="https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Automatic_Batching.html">Auto Batch</a></td>
|
||||
<td><b><i><a href="./src/plugins/auto_batch">openvino_auto_batch_plugin</a></i></b></td>
|
||||
<td>Auto batch plugin performs on-the-fly automatic batching (i.e. grouping inference requests together) to improve device utilization, with no programming effort from the user</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_Hetero_execution.html#doxid-openvino-docs-o-v-u-g-hetero-execution">Hetero</a></td>
|
||||
<td><a href="https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Hetero_execution.html#doxid-openvino-docs-o-v-u-g-hetero-execution">Hetero</a></td>
|
||||
<td><b><i><a href="./src/plugins/hetero">openvino_hetero_plugin</a></i></b></td>
|
||||
<td>Heterogeneous execution enables automatic inference splitting between several devices</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_Running_on_multiple_devices.html#doxid-openvino-docs-o-v-u-g-running-on-multiple-devices">Multi</a></td>
|
||||
<td><a href="https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Running_on_multiple_devices.html#doxid-openvino-docs-o-v-u-g-running-on-multiple-devices">Multi</a></td>
|
||||
<td><b><i><a href="./src/plugins/auto">openvino_auto_plugin</a></i></b></td>
|
||||
<td>Multi plugin enables simultaneous inference of the same model on several devices in parallel</td>
|
||||
</tr>
|
||||
|
|
@ -158,9 +158,9 @@ The list of OpenVINO tutorials:
|
|||
## System requirements
|
||||
|
||||
The system requirements vary depending on platform and are available on dedicated pages:
|
||||
- [Linux](https://docs.openvino.ai/2023.2/openvino_docs_install_guides_installing_openvino_linux_header.html)
|
||||
- [Windows](https://docs.openvino.ai/2023.2/openvino_docs_install_guides_installing_openvino_windows_header.html)
|
||||
- [macOS](https://docs.openvino.ai/2023.2/openvino_docs_install_guides_installing_openvino_macos_header.html)
|
||||
- [Linux](https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_linux_header.html)
|
||||
- [Windows](https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_windows_header.html)
|
||||
- [macOS](https://docs.openvino.ai/2023.3/openvino_docs_install_guides_installing_openvino_macos_header.html)
|
||||
|
||||
## How to build
|
||||
|
||||
|
|
@ -203,6 +203,6 @@ Report questions, issues and suggestions, using:
|
|||
\* Other names and brands may be claimed as the property of others.
|
||||
|
||||
[Open Model Zoo]:https://github.com/openvinotoolkit/open_model_zoo
|
||||
[OpenVINO™ Runtime]:https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_OV_Runtime_User_Guide.html
|
||||
[OpenVINO Model Converter (OVC)]:https://docs.openvino.ai/2023.2/openvino_docs_model_processing_introduction.html#convert-a-model-in-cli-ovc
|
||||
[OpenVINO™ Runtime]:https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_OV_Runtime_User_Guide.html
|
||||
[OpenVINO Model Converter (OVC)]:https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html#convert-a-model-in-cli-ovc
|
||||
[Samples]:https://github.com/openvinotoolkit/openvino/tree/master/samples
|
||||
|
|
|
|||
|
|
@ -96,6 +96,6 @@ Detailed Guides
|
|||
API References
|
||||
##############
|
||||
|
||||
* `OpenVINO Plugin API <https://docs.openvino.ai/2023.2/groupov_dev_api.html>`__
|
||||
* `OpenVINO Transformation API <https://docs.openvino.ai/2023.2/groupie_transformation_api.html>`__
|
||||
* `OpenVINO Plugin API <https://docs.openvino.ai/2023.3/api/c_cpp_api/group__ov__dev__api.html>`__
|
||||
* `OpenVINO Transformation API <https://docs.openvino.ai/2023.3/api/c_cpp_api/group__ie__transformation__api.html>`__
|
||||
|
||||
|
|
|
|||
|
|
@ -12,11 +12,11 @@ Plugin API Reference
|
|||
:maxdepth: 1
|
||||
:hidden:
|
||||
|
||||
../groupov_dev_api
|
||||
../groupie_transformation_api
|
||||
../api/c_cpp_api/group__ov__dev__api
|
||||
../api/c_cpp_api/group__ie__transformation__api
|
||||
|
||||
The guides below provides extra API references needed for OpenVINO plugin development:
|
||||
|
||||
* `OpenVINO Plugin API <https://docs.openvino.ai/2023.2/groupov_dev_api.html>`__
|
||||
* `OpenVINO Transformation API <https://docs.openvino.ai/2023.2/groupie_transformation_api.html>`__
|
||||
* `OpenVINO Plugin API <https://docs.openvino.ai/2023.3/api/c_cpp_api/group__ov__dev__api.html>`__
|
||||
* `OpenVINO Transformation API <https://docs.openvino.ai/2023.3/api/c_cpp_api/group__ie__transformation__api.html>`__
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ Then, the tools can be used by commands like:
|
|||
|
||||
|
||||
Installation of any other dependencies is not required. For more details on the installation steps, see the
|
||||
`Install OpenVINO Development Tools <https://docs.openvino.ai/2023.0/openvino_docs_install_guides_install_dev_tools.html>`__ prior to OpenVINO 2023.1.
|
||||
`Install OpenVINO Development Tools <https://docs.openvino.ai/2023.3/openvino_docs_install_guides_install_dev_tools.html>`__ prior to OpenVINO 2023.1.
|
||||
|
||||
Interface Changes for Building C/C++ Applications
|
||||
#################################################
|
||||
|
|
|
|||
|
|
@ -556,7 +556,7 @@ converting them to ONNX for use with OpenVINO should be considered the default p
|
|||
OpenVINO versions of 2023 are mostly compatible with the old instructions,
|
||||
through a deprecated MO tool, installed with the deprecated OpenVINO Developer Tools package.
|
||||
|
||||
`OpenVINO 2023.0 <https://docs.openvino.ai/2023.0/Supported_Model_Formats.html>`__ is the last
|
||||
`OpenVINO 2023.0 <https://docs.openvino.ai/2023.3/Supported_Model_Formats_MO_DG.html>`__ is the last
|
||||
release officially supporting the MO conversion process for the legacy formats.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ Converting a TensorFlow RetinaNet Model
|
|||
This tutorial explains how to convert a RetinaNet model to the Intermediate Representation (IR).
|
||||
|
||||
`Public RetinaNet model <https://github.com/fizyr/keras-retinanet>`__ does not contain pretrained TensorFlow weights.
|
||||
To convert this model to the TensorFlow format, follow the `Reproduce Keras to TensorFlow Conversion tutorial <https://docs.openvino.ai/2023.2/omz_models_model_retinanet_tf.html>`__.
|
||||
To convert this model to the TensorFlow format, follow the `Reproduce Keras to TensorFlow Conversion tutorial <https://docs.openvino.ai/2023.3/omz_models_model_retinanet_tf.html>`__.
|
||||
|
||||
After converting the model to TensorFlow format, run the following command:
|
||||
|
||||
|
|
|
|||
|
|
@ -136,16 +136,16 @@ Now that you've installed OpenVINO Runtime, you're ready to run your own machine
|
|||
.. image:: https://user-images.githubusercontent.com/15709723/127752390-f6aa371f-31b5-4846-84b9-18dd4f662406.gif
|
||||
:width: 400
|
||||
|
||||
Try the `Python Quick Start Example <https://docs.openvino.ai/2023.2/notebooks/201-vision-monodepth-with-output.html>`__ to estimate depth in a scene using an OpenVINO monodepth model in a Jupyter Notebook inside your web browser.
|
||||
Try the `Python Quick Start Example <https://docs.openvino.ai/2023.3/notebooks/201-vision-monodepth-with-output.html>`__ to estimate depth in a scene using an OpenVINO monodepth model in a Jupyter Notebook inside your web browser.
|
||||
|
||||
Get started with Python
|
||||
+++++++++++++++++++++++
|
||||
|
||||
Visit the :doc:`Tutorials <tutorials>` page for more Jupyter Notebooks to get you started with OpenVINO, such as:
|
||||
|
||||
* `OpenVINO Python API Tutorial <https://docs.openvino.ai/2023.2/notebooks/002-openvino-api-with-output.html>`__
|
||||
* `Basic image classification program with Hello Image Classification <https://docs.openvino.ai/2023.2/notebooks/001-hello-world-with-output.html>`__
|
||||
* `Convert a PyTorch model and use it for image background removal <https://docs.openvino.ai/2023.2/notebooks/205-vision-background-removal-with-output.html>`__
|
||||
* `OpenVINO Python API Tutorial <https://docs.openvino.ai/2023.3/notebooks/002-openvino-api-with-output.html>`__
|
||||
* `Basic image classification program with Hello Image Classification <https://docs.openvino.ai/2023.3/notebooks/001-hello-world-with-output.html>`__
|
||||
* `Convert a PyTorch model and use it for image background removal <https://docs.openvino.ai/2023.3/notebooks/205-vision-background-removal-with-output.html>`__
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -142,6 +142,6 @@ See Also
|
|||
- :doc:`Using OpenVINO™ Samples <openvino_docs_OV_UG_Samples_Overview>`
|
||||
- :doc:`Model Downloader <omz_tools_downloader>`
|
||||
- :doc:`Convert a Model <openvino_docs_MO_DG_Deep_Learning_Model_Optimizer_DevGuide>`
|
||||
- `C API Reference <https://docs.openvino.ai/2023.2/api/api_reference.html>`__
|
||||
- `C API Reference <https://docs.openvino.ai/2023.3/api/api_reference.html>`__
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ You need a model that is specific for your inference task. You can get it from o
|
|||
Convert the Model
|
||||
--------------------
|
||||
|
||||
If Your model requires conversion, check the `article <https://docs.openvino.ai/2023.1/openvino_docs_get_started_get_started_demos.html>`__ for information how to do it.
|
||||
If Your model requires conversion, check the `article <https://docs.openvino.ai/2023.3/openvino_docs_get_started_get_started_demos.html>`__ for information how to do it.
|
||||
|
||||
.. _download-media:
|
||||
|
||||
|
|
|
|||
|
|
@ -48,17 +48,17 @@ The sample works with Kaldi ARK or Numpy* uncompressed NPZ files, so it does not
|
|||
+-------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
|
||||
| Feature | API | Description |
|
||||
+===================================================================+================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+=======================================================================+
|
||||
| Import/Export Model | `openvino.runtime.Core.import_model <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.Core.html#openvino.runtime.Core.import_model>`__ , `openvino.runtime.CompiledModel.export_model <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.CompiledModel.html#openvino.runtime.CompiledModel.export_model>`__ | The GNA plugin supports loading and saving of the GNA-optimized model |
|
||||
| Import/Export Model | `openvino.runtime.Core.import_model <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.Core.html#openvino.runtime.Core.import_model>`__ , `openvino.runtime.CompiledModel.export_model <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.CompiledModel.html#openvino.runtime.CompiledModel.export_model>`__ | The GNA plugin supports loading and saving of the GNA-optimized model |
|
||||
+-------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
|
||||
| Model Operations | `openvino.runtime.Model.add_outputs <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.Model.html#openvino.runtime.Model.add_outputs>`__ , `openvino.runtime.set_batch <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.html#openvino.runtime.set_batch>`__ , `openvino.runtime.CompiledModel.inputs <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.CompiledModel.html#openvino.runtime.CompiledModel.inputs>`__ , `openvino.runtime.CompiledModel.outputs <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.CompiledModel.html#openvino.runtime.CompiledModel.outputs>`__ , `openvino.runtime.ConstOutput.any_name <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.ConstOutput.html#openvino.runtime.ConstOutput.any_name>`__ | Managing of model: configure batch_size, input and output tensors |
|
||||
| Model Operations | `openvino.runtime.Model.add_outputs <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.Model.html#openvino.runtime.Model.add_outputs>`__ , `openvino.runtime.set_batch <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.html#openvino.runtime.set_batch>`__ , `openvino.runtime.CompiledModel.inputs <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.CompiledModel.html#openvino.runtime.CompiledModel.inputs>`__ , `openvino.runtime.CompiledModel.outputs <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.CompiledModel.html#openvino.runtime.CompiledModel.outputs>`__ , `openvino.runtime.ConstOutput.any_name <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.ConstOutput.html#openvino.runtime.ConstOutput.any_name>`__ | Managing of model: configure batch_size, input and output tensors |
|
||||
+-------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
|
||||
| Synchronous Infer | `openvino.runtime.CompiledModel.create_infer_request <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.CompiledModel.html#openvino.runtime.CompiledModel.create_infer_request>`__ , `openvino.runtime.InferRequest.infer <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.InferRequest.html#openvino.runtime.InferRequest.infer>`__ | Do synchronous inference |
|
||||
| Synchronous Infer | `openvino.runtime.CompiledModel.create_infer_request <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.CompiledModel.html#openvino.runtime.CompiledModel.create_infer_request>`__ , `openvino.runtime.InferRequest.infer <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.InferRequest.html#openvino.runtime.InferRequest.infer>`__ | Do synchronous inference |
|
||||
+-------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
|
||||
| InferRequest Operations | `openvino.runtime.InferRequest.get_input_tensor <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.InferRequest.html#openvino.runtime.InferRequest.get_input_tensor>`__ , `openvino.runtime.InferRequest.model_outputs <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.InferRequest.html#openvino.runtime.InferRequest.model_outputs>`__ , `openvino.runtime.InferRequest.model_inputs <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.InferRequest.html#openvino.runtime.InferRequest.model_inputs>`__ , | Get info about model using infer request API |
|
||||
| InferRequest Operations | `openvino.runtime.InferRequest.get_input_tensor <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.InferRequest.html#openvino.runtime.InferRequest.get_input_tensor>`__ , `openvino.runtime.InferRequest.model_outputs <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.InferRequest.html#openvino.runtime.InferRequest.model_outputs>`__ , `openvino.runtime.InferRequest.model_inputs <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.InferRequest.html#openvino.runtime.InferRequest.model_inputs>`__ , | Get info about model using infer request API |
|
||||
+-------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
|
||||
| InferRequest Operations | `openvino.runtime.InferRequest.query_state <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.InferRequest.html#openvino.runtime.InferRequest.query_state>`__ , `openvino.runtime.VariableState.reset <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.inference_engine.VariableState.html#openvino.inference_engine.VariableState.reset>`__ | Gets and resets CompiledModel state control |
|
||||
| InferRequest Operations | `openvino.runtime.InferRequest.query_state <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.InferRequest.html#openvino.runtime.InferRequest.query_state>`__ , `openvino.runtime.VariableState.reset <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.inference_engine.VariableState.html#openvino.inference_engine.VariableState.reset>`__ | Gets and resets CompiledModel state control |
|
||||
+-------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
|
||||
| Profiling | `openvino.runtime.InferRequest.profiling_info <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.InferRequest.html#openvino.runtime.InferRequest.profiling_info>`__ , `openvino.runtime.ProfilingInfo.real_time <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.ProfilingInfo.html#openvino.runtime.ProfilingInfo.real_time>`__ | Get infer request profiling info |
|
||||
| Profiling | `openvino.runtime.InferRequest.profiling_info <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.InferRequest.html#openvino.runtime.InferRequest.profiling_info>`__ , `openvino.runtime.ProfilingInfo.real_time <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.ProfilingInfo.html#openvino.runtime.ProfilingInfo.real_time>`__ | Get infer request profiling info |
|
||||
+-------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
|
||||
|
||||
Basic OpenVINO™ Runtime API is covered by :doc:`Hello Classification Python* Sample <openvino_inference_engine_ie_bridges_python_sample_hello_classification_README>`.
|
||||
|
|
|
|||
|
|
@ -36,23 +36,23 @@ Models with only 1 input and output are supported.
|
|||
+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| Feature | API | Description |
|
||||
+=============================+===========================================================================================================================================================================================================================================+============================================================================================================================================================================================+
|
||||
| Basic Infer Flow | `openvino.runtime.Core <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.Core.html>`__ , | |
|
||||
| | `openvino.runtime.Core.read_model <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.Core.html#openvino.runtime.Core.read_model>`__ , | |
|
||||
| | `openvino.runtime.Core.compile_model <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.Core.html#openvino.runtime.Core.compile_model>`__ | Common API to do inference |
|
||||
| Basic Infer Flow | `openvino.runtime.Core <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.Core.html>`__ , | |
|
||||
| | `openvino.runtime.Core.read_model <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.Core.html#openvino.runtime.Core.read_model>`__ , | |
|
||||
| | `openvino.runtime.Core.compile_model <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.Core.html#openvino.runtime.Core.compile_model>`__ | Common API to do inference |
|
||||
+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| Synchronous Infer | `openvino.runtime.CompiledModel.infer_new_request <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.CompiledModel.html#openvino.runtime.CompiledModel.infer_new_request>`__ | Do synchronous inference |
|
||||
| Synchronous Infer | `openvino.runtime.CompiledModel.infer_new_request <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.CompiledModel.html#openvino.runtime.CompiledModel.infer_new_request>`__ | Do synchronous inference |
|
||||
+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| Model Operations | `openvino.runtime.Model.inputs <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.Model.html#openvino.runtime.Model.inputs>`__ , | Managing of model |
|
||||
| | `openvino.runtime.Model.outputs <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.Model.html#openvino.runtime.Model.outputs>`__ | |
|
||||
| Model Operations | `openvino.runtime.Model.inputs <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.Model.html#openvino.runtime.Model.inputs>`__ , | Managing of model |
|
||||
| | `openvino.runtime.Model.outputs <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.Model.html#openvino.runtime.Model.outputs>`__ | |
|
||||
+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| Preprocessing | `openvino.preprocess.PrePostProcessor <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.preprocess.PrePostProcessor.html>`__ , | Set image of the original size as input for a model with other input size. Resize and layout conversions will be performed automatically by the corresponding plugin just before inference |
|
||||
| | `openvino.preprocess.InputTensorInfo.set_element_type <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.preprocess.InputTensorInfo.html#openvino.preprocess.InputTensorInfo.set_element_type>`__ , | |
|
||||
| | `openvino.preprocess.InputTensorInfo.set_layout <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.preprocess.InputTensorInfo.html#openvino.preprocess.InputTensorInfo.set_layout>`__ , | |
|
||||
| | `openvino.preprocess.InputTensorInfo.set_spatial_static_shape <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.preprocess.InputTensorInfo.html#openvino.preprocess.InputTensorInfo.set_spatial_static_shape>`__ , | |
|
||||
| | `openvino.preprocess.PreProcessSteps.resize <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.preprocess.PreProcessSteps.html#openvino.preprocess.PreProcessSteps.resize>`__ , | |
|
||||
| | `openvino.preprocess.InputModelInfo.set_layout <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.preprocess.InputModelInfo.html#openvino.preprocess.InputModelInfo.set_layout>`__ , | |
|
||||
| | `openvino.preprocess.OutputTensorInfo.set_element_type <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.preprocess.OutputTensorInfo.html#openvino.preprocess.OutputTensorInfo.set_element_type>`__ , | |
|
||||
| | `openvino.preprocess.PrePostProcessor.build <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.preprocess.PrePostProcessor.html#openvino.preprocess.PrePostProcessor.build>`__ | |
|
||||
| Preprocessing | `openvino.preprocess.PrePostProcessor <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.preprocess.PrePostProcessor.html>`__ , | Set image of the original size as input for a model with other input size. Resize and layout conversions will be performed automatically by the corresponding plugin just before inference |
|
||||
| | `openvino.preprocess.InputTensorInfo.set_element_type <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.preprocess.InputTensorInfo.html#openvino.preprocess.InputTensorInfo.set_element_type>`__ , | |
|
||||
| | `openvino.preprocess.InputTensorInfo.set_layout <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.preprocess.InputTensorInfo.html#openvino.preprocess.InputTensorInfo.set_layout>`__ , | |
|
||||
| | `openvino.preprocess.InputTensorInfo.set_spatial_static_shape <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.preprocess.InputTensorInfo.html#openvino.preprocess.InputTensorInfo.set_spatial_static_shape>`__ , | |
|
||||
| | `openvino.preprocess.PreProcessSteps.resize <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.preprocess.PreProcessSteps.html#openvino.preprocess.PreProcessSteps.resize>`__ , | |
|
||||
| | `openvino.preprocess.InputModelInfo.set_layout <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.preprocess.InputModelInfo.html#openvino.preprocess.InputModelInfo.set_layout>`__ , | |
|
||||
| | `openvino.preprocess.OutputTensorInfo.set_element_type <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.preprocess.OutputTensorInfo.html#openvino.preprocess.OutputTensorInfo.set_element_type>`__ , | |
|
||||
| | `openvino.preprocess.PrePostProcessor.build <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.preprocess.PrePostProcessor.html#openvino.preprocess.PrePostProcessor.build>`__ | |
|
||||
+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
.. tab-item:: Sample Code
|
||||
|
|
|
|||
|
|
@ -31,11 +31,11 @@ This sample demonstrates how to show OpenVINO™ Runtime devices and prints thei
|
|||
+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------+
|
||||
| Feature | API | Description |
|
||||
+=======================================+============================================================================================================================================================================================+========================================+
|
||||
| Basic | `openvino.runtime.Core <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.Core.html>`__ | Common API |
|
||||
| Basic | `openvino.runtime.Core <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.Core.html>`__ | Common API |
|
||||
+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------+
|
||||
| Query Device | `openvino.runtime.Core.available_devices <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.Core.html#openvino.runtime.Core.available_devices>`__ , | Get device properties |
|
||||
| | `openvino.runtime.Core.get_metric <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.inference_engine.IECore.html#openvino.inference_engine.IECore.get_metric>`__ , | |
|
||||
| | `openvino.runtime.Core.get_config <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.inference_engine.IECore.html#openvino.inference_engine.IECore.get_config>`__ | |
|
||||
| Query Device | `openvino.runtime.Core.available_devices <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.Core.html#openvino.runtime.Core.available_devices>`__ , | Get device properties |
|
||||
| | `openvino.runtime.Core.get_metric <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.inference_engine.IECore.html#openvino.inference_engine.IECore.get_metric>`__ , | |
|
||||
| | `openvino.runtime.Core.get_config <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.inference_engine.IECore.html#openvino.inference_engine.IECore.get_config>`__ | |
|
||||
+---------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------+
|
||||
|
||||
.. tab-item:: Sample Code
|
||||
|
|
|
|||
|
|
@ -39,10 +39,10 @@ Models with only 1 input and output are supported.
|
|||
+------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------+
|
||||
| Feature | API | Description |
|
||||
+====================================+================================================================================================================================================================================+======================================+
|
||||
| Model Operations | `openvino.runtime.Model.reshape <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.Model.html#openvino.runtime.Model.reshape>`__ , | Managing of model |
|
||||
| | `openvino.runtime.Model.input <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.Model.html#openvino.runtime.Model.input>`__ , | |
|
||||
| | `openvino.runtime.Output.get_any_name <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.Output.html#openvino.runtime.Output.get_any_name>`__ , | |
|
||||
| | `openvino.runtime.PartialShape <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.PartialShape.html>`__ | |
|
||||
| Model Operations | `openvino.runtime.Model.reshape <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.Model.html#openvino.runtime.Model.reshape>`__ , | Managing of model |
|
||||
| | `openvino.runtime.Model.input <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.Model.html#openvino.runtime.Model.input>`__ , | |
|
||||
| | `openvino.runtime.Output.get_any_name <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.Output.html#openvino.runtime.Output.get_any_name>`__ , | |
|
||||
| | `openvino.runtime.PartialShape <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.PartialShape.html>`__ | |
|
||||
+------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------+
|
||||
|
||||
Basic OpenVINO™ Runtime API is covered by :doc:`Hello Classification Python* Sample <openvino_inference_engine_ie_bridges_python_sample_hello_classification_README>`.
|
||||
|
|
|
|||
|
|
@ -36,11 +36,11 @@ Models with only 1 input and output are supported.
|
|||
+--------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------+
|
||||
| Feature | API | Description |
|
||||
+====================+===========================================================================================================================================================================================================+===========================+
|
||||
| Asynchronous Infer | `openvino.runtime.AsyncInferQueue <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.AsyncInferQueue.html>`__ , | Do asynchronous inference |
|
||||
| | `openvino.runtime.AsyncInferQueue.set_callback <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.AsyncInferQueue.html#openvino.runtime.AsyncInferQueue.set_callback>`__ , | |
|
||||
| | `openvino.runtime.AsyncInferQueue.start_async <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.AsyncInferQueue.html#openvino.runtime.AsyncInferQueue.start_async>`__ , | |
|
||||
| | `openvino.runtime.AsyncInferQueue.wait_all <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.AsyncInferQueue.html#openvino.runtime.AsyncInferQueue.wait_all>`__ , | |
|
||||
| | `openvino.runtime.InferRequest.results <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.InferRequest.html#openvino.runtime.InferRequest.results>`__ | |
|
||||
| Asynchronous Infer | `openvino.runtime.AsyncInferQueue <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.AsyncInferQueue.html>`__ , | Do asynchronous inference |
|
||||
| | `openvino.runtime.AsyncInferQueue.set_callback <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.AsyncInferQueue.html#openvino.runtime.AsyncInferQueue.set_callback>`__ , | |
|
||||
| | `openvino.runtime.AsyncInferQueue.start_async <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.AsyncInferQueue.html#openvino.runtime.AsyncInferQueue.start_async>`__ , | |
|
||||
| | `openvino.runtime.AsyncInferQueue.wait_all <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.AsyncInferQueue.html#openvino.runtime.AsyncInferQueue.wait_all>`__ , | |
|
||||
| | `openvino.runtime.InferRequest.results <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.InferRequest.html#openvino.runtime.InferRequest.results>`__ | |
|
||||
+--------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------+
|
||||
|
||||
Basic OpenVINO™ Runtime API is covered by :doc:`Hello Classification Python Sample <openvino_inference_engine_ie_bridges_python_sample_hello_classification_README>`.
|
||||
|
|
|
|||
|
|
@ -35,19 +35,19 @@ This sample demonstrates how to run inference using a :doc:`model <openvino_docs
|
|||
+------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+
|
||||
| Feature | API | Description |
|
||||
+==========================================+==============================================================================================================================================================+====================================================================================+
|
||||
| Model Operations | `openvino.runtime.Model <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.Model.html>`__ , | Managing of model |
|
||||
| | `openvino.runtime.set_batch <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.set_batch.html>`__ , | |
|
||||
| | `openvino.runtime.Model.input <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.Model.html#openvino.runtime.Model.input>`__ | |
|
||||
| Model Operations | `openvino.runtime.Model <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.Model.html>`__ , | Managing of model |
|
||||
| | `openvino.runtime.set_batch <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.set_batch.html>`__ , | |
|
||||
| | `openvino.runtime.Model.input <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.Model.html#openvino.runtime.Model.input>`__ | |
|
||||
+------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+
|
||||
| Opset operations | `openvino.runtime.op.Parameter <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.op.Parameter.html>`__ , | Description of a model topology using OpenVINO Python API |
|
||||
| | `openvino.runtime.op.Constant <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.op.Constant.html>`__ , | |
|
||||
| | `openvino.runtime.opset8.convolution <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.opset8.convolution.html>`__ , | |
|
||||
| | `openvino.runtime.opset8.add <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.opset8.add.html>`__ , | |
|
||||
| | `openvino.runtime.opset1.max_pool <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.opset1.max_pool.html>`__ , | |
|
||||
| | `openvino.runtime.opset8.reshape <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.opset8.reshape.html>`__ , | |
|
||||
| | `openvino.runtime.opset8.matmul <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.opset8.matmul.html>`__ , | |
|
||||
| | `openvino.runtime.opset8.relu <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.opset8.relu.html>`__ , | |
|
||||
| | `openvino.runtime.opset8.softmax <https://docs.openvino.ai/2023.2/api/ie_python_api/_autosummary/openvino.runtime.opset8.softmax.html>`__ | |
|
||||
| Opset operations | `openvino.runtime.op.Parameter <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.op.Parameter.html>`__ , | Description of a model topology using OpenVINO Python API |
|
||||
| | `openvino.runtime.op.Constant <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.op.Constant.html>`__ , | |
|
||||
| | `openvino.runtime.opset8.convolution <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.opset8.convolution.html>`__ , | |
|
||||
| | `openvino.runtime.opset8.add <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.opset8.add.html>`__ , | |
|
||||
| | `openvino.runtime.opset1.max_pool <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.opset1.max_pool.html>`__ , | |
|
||||
| | `openvino.runtime.opset8.reshape <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.opset8.reshape.html>`__ , | |
|
||||
| | `openvino.runtime.opset8.matmul <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.opset8.matmul.html>`__ , | |
|
||||
| | `openvino.runtime.opset8.relu <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.opset8.relu.html>`__ , | |
|
||||
| | `openvino.runtime.opset8.softmax <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.runtime.opset8.softmax.html>`__ | |
|
||||
+------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+
|
||||
|
||||
Basic OpenVINO™ Runtime API is covered by :doc:`Hello Classification Python* Sample <openvino_inference_engine_ie_bridges_python_sample_hello_classification_README>`.
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ Below are example-codes for the regular and async-based approaches to compare:
|
|||
|
||||
|
||||
The technique can be generalized to any available parallel slack. For example, you can do inference and simultaneously encode the resulting or previous frames or run further inference, like emotion detection on top of the face detection results.
|
||||
Refer to the `Object Detection C++ Demo <https://docs.openvino.ai/2023.2/omz_demos_object_detection_demo_cpp.html>`__ , `Object Detection Python Demo <https://docs.openvino.ai/2023.2/omz_demos_object_detection_demo_python.html>`__ (latency-oriented Async API showcase) and :doc:`Benchmark App Sample <openvino_inference_engine_samples_benchmark_app_README>` for complete examples of the Async API in action.
|
||||
Refer to the `Object Detection C++ Demo <https://docs.openvino.ai/2023.3/omz_demos_object_detection_demo_cpp.html>`__ , `Object Detection Python Demo <https://docs.openvino.ai/2023.3/omz_demos_object_detection_demo_python.html>`__ (latency-oriented Async API showcase) and :doc:`Benchmark App Sample <openvino_inference_engine_samples_benchmark_app_README>` for complete examples of the Async API in action.
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ Additional Resources
|
|||
* :doc:`Layout API overview <openvino_docs_OV_UG_Layout_Overview>`
|
||||
* :doc:`Model Optimizer - Optimize Preprocessing Computation <openvino_docs_MO_DG_Additional_Optimization_Use_Cases>`
|
||||
* :doc:`Model Caching Overview <openvino_docs_OV_UG_Model_caching_overview>`
|
||||
* The `ov::preprocess::PrePostProcessor <https://docs.openvino.ai/2023.2/classov_1_1preprocess_1_1PrePostProcessor.html#doxid-classov-1-1preprocess-1-1-pre-post-processor>`__ C++ class documentation
|
||||
* The `ov::pass::Serialize <https://docs.openvino.ai/2023.2/classov_1_1pass_1_1Serialize.html#doxid-classov-1-1pass-1-1-serialize.html>`__ - pass to serialize model to XML/BIN
|
||||
* The `ov::set_batch <https://docs.openvino.ai/2023.2/namespaceov.html#doxid-namespaceov-1a3314e2ff91fcc9ffec05b1a77c37862b.html>`__ - update batch dimension for a given model
|
||||
* The `ov::preprocess::PrePostProcessor <https://docs.openvino.ai/2023.3/api/c_cpp_api/classov_1_1preprocess_1_1_pre_post_processor.html>`__ C++ class documentation
|
||||
* The `ov::pass::Serialize <https://docs.openvino.ai/2023.3/classov_1_1pass_1_1Serialize.html#doxid-classov-1-1pass-1-1-serialize.html>`__ - pass to serialize model to XML/BIN
|
||||
* The `ov::set_batch <https://docs.openvino.ai/2023.3/namespaceov.html#doxid-namespaceov-1a3314e2ff91fcc9ffec05b1a77c37862b.html>`__ - update batch dimension for a given model
|
||||
|
||||
|
|
|
|||
|
|
@ -438,8 +438,7 @@ To build your project using CMake with the default build tools currently availab
|
|||
Additional Resources
|
||||
####################
|
||||
|
||||
* See the :doc:`OpenVINO Samples <openvino_docs_OV_UG_Samples_Overview>` page or the `Open Model Zoo Demos <https://docs.openvino.ai/2023.2/omz_demos.html>`__ page for specific examples of how OpenVINO pipelines are implemented for applications like image classification, text prediction, and many others.
|
||||
* See the :doc:`OpenVINO Samples <openvino_docs_OV_UG_Samples_Overview>` page or the `Open Model Zoo Demos <https://docs.openvino.ai/2023.3/omz_demos.html>`__ page for specific examples of how OpenVINO pipelines are implemented for applications like image classification, text prediction, and many others.
|
||||
* :doc:`OpenVINO™ Runtime Preprocessing <openvino_docs_OV_UG_Preprocessing_Overview>`
|
||||
* :doc:`Using Encrypted Models with OpenVINO <openvino_docs_OV_UG_protecting_model_guide>`
|
||||
* `Open Model Zoo Demos <https://docs.openvino.ai/2023.2/omz_demos.html>`__
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ Model input dimensions can be specified as dynamic using the model.reshape metho
|
|||
|
||||
Some models may already have dynamic shapes out of the box and do not require additional configuration. This can either be because it was generated with dynamic shapes from the source framework, or because it was converted with Model Conversion API to use dynamic shapes. For more information, see the Dynamic Dimensions “Out of the Box” section.
|
||||
|
||||
The examples below show how to set dynamic dimensions with a model that has a static ``[1, 3, 224, 224]`` input shape (such as `mobilenet-v2 <https://docs.openvino.ai/2023.2/omz_models_model_mobilenet_v2.html>`__). The first example shows how to change the first dimension (batch size) to be dynamic. In the second example, the third and fourth dimensions (height and width) are set as dynamic.
|
||||
The examples below show how to set dynamic dimensions with a model that has a static ``[1, 3, 224, 224]`` input shape (such as `mobilenet-v2 <https://docs.openvino.ai/2023.3/omz_models_model_mobilenet_v2.html>`__). The first example shows how to change the first dimension (batch size) to be dynamic. In the second example, the third and fourth dimensions (height and width) are set as dynamic.
|
||||
|
||||
.. tab-set::
|
||||
|
||||
|
|
@ -177,7 +177,7 @@ The lower and/or upper bounds of a dynamic dimension can also be specified. They
|
|||
.. tab-item:: C
|
||||
:sync: c
|
||||
|
||||
The dimension bounds can be coded as arguments for `ov_dimension <https://docs.openvino.ai/2023.2/structov_dimension.html#doxid-structov-dimension>`__, as shown in these examples:
|
||||
The dimension bounds can be coded as arguments for `ov_dimension <https://docs.openvino.ai/2023.3/api/c_cpp_api/structov__dimension.html>`__, as shown in these examples:
|
||||
|
||||
.. doxygensnippet:: docs/snippets/ov_dynamic_shapes.c
|
||||
:language: cpp
|
||||
|
|
|
|||
|
|
@ -183,8 +183,8 @@ In this case OpenVINO CMake scripts take `TBBROOT` environment variable into acc
|
|||
[pugixml]:https://pugixml.org/
|
||||
[ONNX]:https://onnx.ai/
|
||||
[protobuf]:https://github.com/protocolbuffers/protobuf
|
||||
[deployment manager]:https://docs.openvino.ai/2023.2/openvino_docs_install_guides_deployment_manager_tool.html
|
||||
[OpenVINO Runtime Introduction]:https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_Integrate_OV_with_your_application.html
|
||||
[deployment manager]:https://docs.openvino.ai/2023.3/openvino_docs_install_guides_deployment_manager_tool.html
|
||||
[OpenVINO Runtime Introduction]:https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Integrate_OV_with_your_application.html
|
||||
[PDPD]:https://github.com/PaddlePaddle/Paddle
|
||||
[TensorFlow]:https://www.tensorflow.org/
|
||||
[TensorFlow Lite]:https://www.tensorflow.org/lite
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
OpenVINO components provides different debug capabilities, to get more information please read:
|
||||
|
||||
* [OpenVINO Model Debug Capabilities](https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_Model_Representation.html#model-debug-capabilities)
|
||||
* [OpenVINO Model Debug Capabilities](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Model_Representation.html#model-debug-capabilities)
|
||||
* [OpenVINO Pass Manager Debug Capabilities](#todo)
|
||||
|
||||
## See also
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<!--- The note below is intended for master branch only for pre-release purpose. Remove it for official releases. --->
|
||||
> **NOTE**: This version is pre-release software and has not undergone full release validation or qualification. No support is offered on pre-release software and APIs/behavior are subject to change. It should NOT be incorporated into any production software/solution and instead should be used only for early testing and integration while awaiting a final release version of this software.
|
||||
|
||||
> **NOTE**: OpenVINO™ Development Tools package has been deprecated and will be discontinued with 2025.0 release. To learn more, refer to the [OpenVINO Legacy Features and Components page](https://docs.openvino.ai/2023.2/openvino_legacy_features.html).
|
||||
> **NOTE**: OpenVINO™ Development Tools package has been deprecated and will be discontinued with 2025.0 release. To learn more, refer to the [OpenVINO Legacy Features and Components page](https://docs.openvino.ai/2023.3/openvino_legacy_features.html).
|
||||
|
||||
Intel® Distribution of OpenVINO™ toolkit is an open-source toolkit for optimizing and deploying AI inference. It can be used to develop applications and solutions based on deep learning tasks, such as: emulation of human vision, automatic speech recognition, natural language processing, recommendation systems, etc. It provides high-performance and rich deployment options, from edge to cloud.
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ For example, to install and configure the components for working with TensorFlow
|
|||
|
||||
## Troubleshooting
|
||||
|
||||
For general troubleshooting steps and issues, see [Troubleshooting Guide for OpenVINO Installation](https://docs.openvino.ai/2023.2/openvino_docs_get_started_guide_troubleshooting.html). The following sections also provide explanations to several error messages.
|
||||
For general troubleshooting steps and issues, see [Troubleshooting Guide for OpenVINO Installation](https://docs.openvino.ai/2023.3/openvino_docs_get_started_guide_troubleshooting.html). The following sections also provide explanations to several error messages.
|
||||
|
||||
### Errors with Installing via PIP for Users in China
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
Intel® Distribution of OpenVINO™ toolkit is an open-source toolkit for optimizing and deploying AI inference. It can be used to develop applications and solutions based on deep learning tasks, such as: emulation of human vision, automatic speech recognition, natural language processing, recommendation systems, etc. It provides high-performance and rich deployment options, from edge to cloud.
|
||||
|
||||
If you have already finished developing your models and converting them to the OpenVINO model format, you can install OpenVINO Runtime to deploy your applications on various devices. The [OpenVINO™](https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_OV_Runtime_User_Guide.html) Python package includes a set of libraries for an easy inference integration with your products.
|
||||
If you have already finished developing your models and converting them to the OpenVINO model format, you can install OpenVINO Runtime to deploy your applications on various devices. The [OpenVINO™](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_OV_Runtime_User_Guide.html) Python package includes a set of libraries for an easy inference integration with your products.
|
||||
|
||||
## System Requirements
|
||||
|
||||
|
|
@ -75,13 +75,13 @@ If installation was successful, you will see the list of available devices.
|
|||
|
||||
| Component | Content | Description |
|
||||
|------------------|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| [OpenVINO Runtime](https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_OV_Runtime_User_Guide.html) | `openvino package` |**OpenVINO Runtime** is a set of C++ libraries with C and Python bindings providing a common API to deliver inference solutions on the platform of your choice. Use the OpenVINO Runtime API to read PyTorch\*, TensorFlow\*, TensorFlow Lite\*, ONNX\*, and PaddlePaddle\* models and execute them on preferred devices. OpenVINO Runtime uses a plugin architecture and includes the following plugins: [CPU](https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_supported_plugins_CPU.html), [GPU](https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_supported_plugins_GPU.html), [Auto Batch](https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_Automatic_Batching.html), [Auto](https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_supported_plugins_AUTO.html), [Hetero](https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_Hetero_execution.html).
|
||||
| [OpenVINO Model Converter (OVC)](https://docs.openvino.ai/2023.2/openvino_docs_model_processing_introduction.html#convert-a-model-in-cli-ovc) | `ovc` |**OpenVINO Model Converter** converts models that were trained in popular frameworks to a format usable by OpenVINO components. <br>Supported frameworks include ONNX\*, TensorFlow\*, TensorFlow Lite\*, and PaddlePaddle\*. |
|
||||
| [Benchmark Tool](https://docs.openvino.ai/2023.2/openvino_inference_engine_tools_benchmark_tool_README.html)| `benchmark_app` | **Benchmark Application** allows you to estimate deep learning inference performance on supported devices for synchronous and asynchronous modes. |
|
||||
| [OpenVINO Runtime](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_OV_Runtime_User_Guide.html) | `openvino package` |**OpenVINO Runtime** is a set of C++ libraries with C and Python bindings providing a common API to deliver inference solutions on the platform of your choice. Use the OpenVINO Runtime API to read PyTorch\*, TensorFlow\*, TensorFlow Lite\*, ONNX\*, and PaddlePaddle\* models and execute them on preferred devices. OpenVINO Runtime uses a plugin architecture and includes the following plugins: [CPU](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_CPU.html), [GPU](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_GPU.html), [Auto Batch](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Automatic_Batching.html), [Auto](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_AUTO.html), [Hetero](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Hetero_execution.html).
|
||||
| [OpenVINO Model Converter (OVC)](https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html#convert-a-model-in-cli-ovc) | `ovc` |**OpenVINO Model Converter** converts models that were trained in popular frameworks to a format usable by OpenVINO components. <br>Supported frameworks include ONNX\*, TensorFlow\*, TensorFlow Lite\*, and PaddlePaddle\*. |
|
||||
| [Benchmark Tool](https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html)| `benchmark_app` | **Benchmark Application** allows you to estimate deep learning inference performance on supported devices for synchronous and asynchronous modes. |
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
For general troubleshooting steps and issues, see [Troubleshooting Guide for OpenVINO Installation](https://docs.openvino.ai/2023.2/openvino_docs_get_started_guide_troubleshooting.html). The following sections also provide explanations to several error messages.
|
||||
For general troubleshooting steps and issues, see [Troubleshooting Guide for OpenVINO Installation](https://docs.openvino.ai/2023.3/openvino_docs_get_started_guide_troubleshooting.html). The following sections also provide explanations to several error messages.
|
||||
|
||||
### Errors with Installing via PIP for Users in China
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ OpenVINO 2023.2
|
|||
.. container::
|
||||
:name: ov-homepage-banner
|
||||
|
||||
OpenVINO 2023.2
|
||||
OpenVINO 2023.3
|
||||
|
||||
.. raw:: html
|
||||
|
||||
|
|
@ -25,13 +25,13 @@ OpenVINO 2023.2
|
|||
<li class="splide__slide">An open-source toolkit for optimizing and deploying deep learning models.<br>Boost your AI deep-learning inference performance!</li>
|
||||
|
||||
<li class="splide__slide"Better OpenVINO integration with PyTorch!<br>Use PyTorch models directly, without converting them first.<br>
|
||||
<a href="https://docs.openvino.ai/2023.2/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_PyTorch.html">Learn more...</a>
|
||||
<a href="https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_PyTorch.html">Learn more...</a>
|
||||
</li>
|
||||
<li class="splide__slide">OpenVINO via PyTorch 2.0 torch.compile()<br>Use OpenVINO directly in PyTorch-native applications!<br>
|
||||
<a href="https://docs.openvino.ai/2023.2/pytorch_2_0_torch_compile.html">Learn more...</a>
|
||||
<a href="https://docs.openvino.ai/2023.3/pytorch_2_0_torch_compile.html">Learn more...</a>
|
||||
</li>
|
||||
<li class="splide__slide">Do you like Generative AI? You will love how it performs with OpenVINO!<br>
|
||||
<a href="https://docs.openvino.ai/2023.2/tutorials.html">Check out our new notebooks...</a>
|
||||
<a href="https://docs.openvino.ai/2023.3/tutorials.html">Check out our new notebooks...</a>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ This basic introduction to OpenVINO™ shows how to do inference with an
|
|||
image classification model.
|
||||
|
||||
A pre-trained `MobileNetV3
|
||||
model <https://docs.openvino.ai/2023.0/omz_models_model_mobilenet_v3_small_1_0_224_tf.html>`__
|
||||
model <https://docs.openvino.ai/2023.3/omz_models_model_mobilenet_v3_small_1_0_224_tf.html>`__
|
||||
from `Open Model
|
||||
Zoo <https://github.com/openvinotoolkit/open_model_zoo/>`__ is used in
|
||||
this tutorial. For more information about how OpenVINO IR models are
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ After initializing OpenVINO Runtime, first read the model file with
|
|||
``compile_model()`` method.
|
||||
|
||||
`OpenVINO™ supports several model
|
||||
formats <https://docs.openvino.ai/2023.0/Supported_Model_Formats.html#doxid-supported-model-formats>`__
|
||||
formats <https://docs.openvino.ai/2023.3/Supported_Model_Formats_MO_DG.html#doxid-supported-model-formats>`__
|
||||
and enables developers to convert them to its own OpenVINO IR format
|
||||
using a tool dedicated to this task.
|
||||
|
||||
|
|
@ -158,7 +158,7 @@ file has a different filename, it can be specified using the ``weights``
|
|||
parameter in ``read_model()``.
|
||||
|
||||
The OpenVINO `Model Conversion
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
tool is used to convert models to OpenVINO IR format. Model conversion
|
||||
API reads the original model and creates an OpenVINO IR model (``.xml``
|
||||
and ``.bin`` files) so inference can be performed without delays due to
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Hello Image Segmentation
|
|||
A very basic introduction to using segmentation models with OpenVINO™.
|
||||
|
||||
In this tutorial, a pre-trained
|
||||
`road-segmentation-adas-0001 <https://docs.openvino.ai/2023.0/omz_models_model_road_segmentation_adas_0001.html>`__
|
||||
`road-segmentation-adas-0001 <https://docs.openvino.ai/2023.3/omz_models_model_road_segmentation_adas_0001.html>`__
|
||||
model from the `Open Model
|
||||
Zoo <https://github.com/openvinotoolkit/open_model_zoo/>`__ is used.
|
||||
ADAS stands for Advanced Driver Assistance Services. The model
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ A very basic introduction to using object detection models with
|
|||
OpenVINO™.
|
||||
|
||||
The
|
||||
`horizontal-text-detection-0001 <https://docs.openvino.ai/2023.0/omz_models_model_horizontal_text_detection_0001.html>`__
|
||||
`horizontal-text-detection-0001 <https://docs.openvino.ai/2023.3/omz_models_model_horizontal_text_detection_0001.html>`__
|
||||
model from `Open Model
|
||||
Zoo <https://github.com/openvinotoolkit/open_model_zoo/>`__ is used. It
|
||||
detects horizontal text in images and returns a blob of data in the
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@ Convert a TensorFlow Model to OpenVINO™
|
|||
=======================================
|
||||
|
||||
This short tutorial shows how to convert a TensorFlow
|
||||
`MobileNetV3 <https://docs.openvino.ai/2023.0/omz_models_model_mobilenet_v3_small_1_0_224_tf.html>`__
|
||||
`MobileNetV3 <https://docs.openvino.ai/2023.3/omz_models_model_mobilenet_v3_small_1_0_224_tf.html>`__
|
||||
image classification model to OpenVINO `Intermediate
|
||||
Representation <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_IR_and_opsets.html>`__
|
||||
Representation <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_IR_and_opsets.html>`__
|
||||
(OpenVINO IR) format, using `Model Conversion
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
After creating the OpenVINO IR, load the model in `OpenVINO
|
||||
Runtime <https://docs.openvino.ai/nightly/openvino_docs_OV_UG_OV_Runtime_User_Guide.html>`__
|
||||
and do inference with a sample image.
|
||||
|
|
@ -165,7 +165,7 @@ model directory and returns OpenVINO Model class instance which
|
|||
represents this model. Obtained model is ready to use and to be loaded
|
||||
on a device using ``ov.compile_model`` or can be saved on a disk using
|
||||
the ``ov.save_model`` function. See the
|
||||
`tutorial <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow.html>`__
|
||||
`tutorial <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow.html>`__
|
||||
for more information about using model conversion API with TensorFlow
|
||||
models.
|
||||
|
||||
|
|
@ -329,7 +329,7 @@ Timing
|
|||
Measure the time it takes to do inference on thousand images. This gives
|
||||
an indication of performance. For more accurate benchmarking, use the
|
||||
`Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
in OpenVINO. Note that many optimizations are possible to improve the
|
||||
performance.
|
||||
|
||||
|
|
|
|||
|
|
@ -240,7 +240,7 @@ Convert ONNX Model to OpenVINO IR Format
|
|||
To convert the ONNX model to OpenVINO IR with ``FP16`` precision, use
|
||||
model conversion API. The models are saved inside the current directory.
|
||||
For more information on how to convert models, see this
|
||||
`page <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
`page <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
@ -509,7 +509,7 @@ Performance Comparison
|
|||
Measure the time it takes to do inference on twenty images. This gives
|
||||
an indication of performance. For more accurate benchmarking, use the
|
||||
`Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__.
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__.
|
||||
Keep in mind that many optimizations are possible to improve the
|
||||
performance.
|
||||
|
||||
|
|
@ -608,6 +608,6 @@ References
|
|||
- `OpenVINO ONNX
|
||||
support <https://docs.openvino.ai/2021.4/openvino_docs_IE_DG_ONNX_Support.html>`__
|
||||
- `Model Conversion API
|
||||
documentation <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__
|
||||
documentation <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
- `Converting Pytorch
|
||||
model <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_PyTorch.html>`__
|
||||
model <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_PyTorch.html>`__
|
||||
|
|
|
|||
|
|
@ -305,7 +305,7 @@ accept path to PaddlePaddle model and returns OpenVINO Model class
|
|||
instance which represents this model. Obtained model is ready to use and
|
||||
loading on device using ``ov.compile_model`` or can be saved on disk
|
||||
using ``ov.save_model`` function. See the `Model Conversion
|
||||
Guide <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__
|
||||
Guide <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
for more information about the Model Conversion API.
|
||||
|
||||
.. code:: ipython3
|
||||
|
|
@ -406,7 +406,7 @@ Measure the time it takes to do inference on fifty images and compare
|
|||
the result. The timing information gives an indication of performance.
|
||||
For a fair comparison, we include the time it takes to process the
|
||||
image. For more accurate benchmarking, use the `OpenVINO benchmark
|
||||
tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__.
|
||||
tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__.
|
||||
Note that many optimizations are possible to improve the performance.
|
||||
|
||||
.. code:: ipython3
|
||||
|
|
@ -538,4 +538,4 @@ References
|
|||
|
||||
- `PaddleClas <https://github.com/PaddlePaddle/PaddleClas>`__
|
||||
- `OpenVINO PaddlePaddle
|
||||
support <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_Paddle.html>`__
|
||||
support <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_Paddle.html>`__
|
||||
|
|
|
|||
|
|
@ -222,9 +222,9 @@ Converting mobilenet-v2-pytorch…
|
|||
Conversion command: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-534/.workspace/scm/ov-notebook/.venv/bin/python -- /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-534/.workspace/scm/ov-notebook/.venv/bin/mo --framework=onnx --output_dir=model/public/mobilenet-v2-pytorch/FP16 --model_name=mobilenet-v2-pytorch --input=data '--mean_values=data[123.675,116.28,103.53]' '--scale_values=data[58.624,57.12,57.375]' --reverse_input_channels --output=prob --input_model=model/public/mobilenet-v2-pytorch/mobilenet-v2.onnx '--layout=data(NCHW)' '--input_shape=[1, 3, 224, 224]' --compress_to_fp16=True
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-534/.workspace/scm/ov-notebook/notebooks/104-model-tools/model/public/mobilenet-v2-pytorch/FP16/mobilenet-v2-pytorch.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-534/.workspace/scm/ov-notebook/notebooks/104-model-tools/model/public/mobilenet-v2-pytorch/FP16/mobilenet-v2-pytorch.bin
|
||||
|
|
|
|||
|
|
@ -532,7 +532,7 @@ Frames Per Second (FPS) for images.
|
|||
|
||||
Finally, measure the inference performance of OpenVINO ``FP32`` and
|
||||
``INT8`` models. For this purpose, use `Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
in OpenVINO.
|
||||
|
||||
**Note**: The ``benchmark_app`` tool is able to measure the
|
||||
|
|
|
|||
|
|
@ -2,19 +2,19 @@ Automatic Device Selection with OpenVINO™
|
|||
=========================================
|
||||
|
||||
The `Auto
|
||||
device <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_supported_plugins_AUTO.html>`__
|
||||
device <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_AUTO.html>`__
|
||||
(or AUTO in short) selects the most suitable device for inference by
|
||||
considering the model precision, power efficiency and processing
|
||||
capability of the available `compute
|
||||
devices <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_supported_plugins_Supported_Devices.html>`__.
|
||||
devices <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_Supported_Devices.html>`__.
|
||||
The model precision (such as ``FP32``, ``FP16``, ``INT8``, etc.) is the
|
||||
first consideration to filter out the devices that cannot run the
|
||||
network efficiently.
|
||||
|
||||
Next, if dedicated accelerators are available, these devices are
|
||||
preferred (for example, integrated and discrete
|
||||
`GPU <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_supported_plugins_GPU.html#doxid-openvino-docs-o-v-u-g-supported-plugins-g-p-u>`__).
|
||||
`CPU <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_supported_plugins_CPU.html>`__
|
||||
`GPU <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_GPU.html#doxid-openvino-docs-o-v-u-g-supported-plugins-g-p-u>`__).
|
||||
`CPU <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_CPU.html>`__
|
||||
is used as the default “fallback device”. Keep in mind that AUTO makes
|
||||
this selection only once, during the loading of a model.
|
||||
|
||||
|
|
@ -122,7 +122,7 @@ with ``ov.compile_model`` or serialized for next usage with
|
|||
``ov.save_model``.
|
||||
|
||||
For more information about model conversion API, see this
|
||||
`page <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
`page <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
@ -361,9 +361,9 @@ completely portable between devices – meaning AUTO can configure the
|
|||
performance hint on whichever device is being used.
|
||||
|
||||
For more information, refer to the `Performance
|
||||
Hints <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_supported_plugins_AUTO.html#performance-hints>`__
|
||||
Hints <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_AUTO.html#performance-hints>`__
|
||||
section of `Automatic Device
|
||||
Selection <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_supported_plugins_AUTO.html>`__
|
||||
Selection <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_AUTO.html>`__
|
||||
article.
|
||||
|
||||
Class and callback definition
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ steps:
|
|||
accurate results, we should keep the operation in the postprocessing
|
||||
subgraph in floating point precision, using the ``ignored_scope``
|
||||
parameter. For more information see `Tune quantization
|
||||
parameters <https://docs.openvino.ai/2023.0/basic_quantization_flow.html#tune-quantization-parameters>`__.
|
||||
parameters <https://docs.openvino.ai/2023.3/basic_quantization_flow.html#tune-quantization-parameters>`__.
|
||||
3. Serialize OpenVINO IR model using ``ov.save_model`` function.
|
||||
|
||||
.. code:: ipython3
|
||||
|
|
|
|||
|
|
@ -95,10 +95,10 @@ cards <https://www.intel.com/content/www/us/en/products/details/discrete-gpus/ar
|
|||
and `Intel® Data Center GPU Flex
|
||||
Series <https://www.intel.com/content/www/us/en/products/details/discrete-gpus/data-center-gpu/flex-series.html>`__.
|
||||
To get started, first `install
|
||||
OpenVINO <https://docs.openvino.ai/2023.0/openvino_docs_install_guides_overview.html>`__
|
||||
OpenVINO <https://docs.openvino.ai/2023.3/openvino_docs_install_guides_overview.html>`__
|
||||
on a system equipped with one or more Intel GPUs. Follow the `GPU
|
||||
configuration
|
||||
instructions <https://docs.openvino.ai/2023.0/openvino_docs_install_guides_configurations_for_intel_gpu.html>`__
|
||||
instructions <https://docs.openvino.ai/2023.3/openvino_docs_install_guides_configurations_for_intel_gpu.html>`__
|
||||
to configure OpenVINO to work with your GPU. Then, read on to learn how
|
||||
to accelerate inference with GPUs in OpenVINO!
|
||||
|
||||
|
|
@ -162,12 +162,12 @@ the system has a CPU, an integrated and discrete GPU, we should expect
|
|||
to see a list like this: ``['CPU', 'GPU.0', 'GPU.1']``. To simplify its
|
||||
use, the “GPU.0” can also be addressed with just “GPU”. For more
|
||||
details, see the `Device Naming
|
||||
Convention <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_supported_plugins_GPU.html#device-naming-convention>`__
|
||||
Convention <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_GPU.html#device-naming-convention>`__
|
||||
section.
|
||||
|
||||
If the GPUs are installed correctly on the system and still do not
|
||||
appear in the list, follow the steps described
|
||||
`here <https://docs.openvino.ai/2023.0/openvino_docs_install_guides_configurations_for_intel_gpu.html>`__
|
||||
`here <https://docs.openvino.ai/2023.3/openvino_docs_install_guides_configurations_for_intel_gpu.html>`__
|
||||
to configure your GPU drivers to work with OpenVINO. Once we have the
|
||||
GPUs working with OpenVINO, we can proceed with the next sections.
|
||||
|
||||
|
|
@ -279,7 +279,7 @@ the key properties are:
|
|||
speed up compilation time.
|
||||
|
||||
To learn more about devices and properties, see the `Query Device
|
||||
Properties <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_query_api.html>`__
|
||||
Properties <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_query_api.html>`__
|
||||
page.
|
||||
|
||||
Compiling a Model on GPU
|
||||
|
|
@ -288,7 +288,7 @@ Compiling a Model on GPU
|
|||
Now, we know how to list the GPUs in the system and check their
|
||||
properties. We can easily use one for compiling and running models with
|
||||
OpenVINO `GPU
|
||||
plugin <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_supported_plugins_GPU.html>`__.
|
||||
plugin <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_GPU.html>`__.
|
||||
|
||||
Download and Convert a Model
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
@ -363,7 +363,7 @@ Convert the Model to OpenVINO IR format
|
|||
To convert the model to OpenVINO IR with ``FP16`` precision, use model
|
||||
conversion API. The models are saved to the ``model/ir_model/``
|
||||
directory. For more details about model conversion, see this
|
||||
`page <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
`page <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
@ -420,7 +420,7 @@ the ``available_devices`` method are valid device specifiers. You may
|
|||
also use “AUTO”, which will automatically select the best device for
|
||||
inference (which is often the GPU). To learn more about AUTO plugin,
|
||||
visit the `Automatic Device
|
||||
Selection <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_supported_plugins_AUTO.html>`__
|
||||
Selection <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_AUTO.html>`__
|
||||
page as well as the `AUTO device
|
||||
tutorial <https://github.com/openvinotoolkit/openvino_notebooks/tree/main/notebooks/106-auto-device>`__.
|
||||
|
||||
|
|
@ -490,7 +490,7 @@ compile times with caching enabled and disabled as follows:
|
|||
The actual time improvements will depend on the environment as well as
|
||||
the model being used but it is definitely something to consider when
|
||||
optimizing an application. To read more about this, see the `Model
|
||||
Caching <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_Model_caching_overview.html>`__
|
||||
Caching <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Model_caching_overview.html>`__
|
||||
docs.
|
||||
|
||||
Throughput and Latency Performance Hints
|
||||
|
|
@ -529,7 +529,7 @@ Using Multiple GPUs with Multi-Device and Cumulative Throughput
|
|||
The latency and throughput hints mentioned above are great and can make
|
||||
a difference when used adequately but they usually use just one device,
|
||||
either due to the `AUTO
|
||||
plugin <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_supported_plugins_AUTO.html#how-auto-works>`__
|
||||
plugin <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_AUTO.html#how-auto-works>`__
|
||||
or by manual specification of the device name as above. When we have
|
||||
multiple devices, such as an integrated and discrete GPU, we may use
|
||||
both at the same time to improve the utilization of the resources. In
|
||||
|
|
@ -561,7 +561,7 @@ manually specify devices to use. Below is an example showing how to use
|
|||
how to set up an asynchronous pipeline that takes advantage of
|
||||
parallelism to increase throughput.** To learn more, see
|
||||
`Asynchronous
|
||||
Inferencing <https://docs.openvino.ai/2023.0/openvino_docs_ie_plugin_dg_async_infer_request.html>`__
|
||||
Inferencing <https://docs.openvino.ai/2023.3/openvino_docs_ov_plugin_dg_async_infer_request.html>`__
|
||||
in OpenVINO as well as the `Asynchronous Inference
|
||||
notebook <https://github.com/openvinotoolkit/openvino_notebooks/tree/main/notebooks/115-async-api>`__.
|
||||
|
||||
|
|
@ -585,7 +585,7 @@ Note that benchmark_app only requires the model path to run but both the
|
|||
device and hint arguments will be useful to us. For more advanced
|
||||
usages, the tool itself has other options that can be checked by running
|
||||
``benchmark_app -h`` or reading the
|
||||
`docs <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__.
|
||||
`docs <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__.
|
||||
The following example shows how to benchmark a simple model, using a GPU
|
||||
with a latency focus:
|
||||
|
||||
|
|
@ -1335,18 +1335,18 @@ To read more about any of these topics, feel free to visit their
|
|||
corresponding documentation:
|
||||
|
||||
- `GPU
|
||||
Plugin <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_supported_plugins_GPU.html>`__
|
||||
Plugin <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_GPU.html>`__
|
||||
- `AUTO
|
||||
Plugin <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_supported_plugins_AUTO.html>`__
|
||||
Plugin <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_AUTO.html>`__
|
||||
- `Model
|
||||
Caching <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_Model_caching_overview.html>`__
|
||||
Caching <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Model_caching_overview.html>`__
|
||||
- `MULTI Device
|
||||
Mode <https://docs.openvino.ai/nightly/openvino_docs_OV_UG_Running_on_multiple_devices.html>`__
|
||||
- `Query Device
|
||||
Properties <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_query_api.html>`__
|
||||
Properties <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_query_api.html>`__
|
||||
- `Configurations for GPUs with
|
||||
OpenVINO <https://docs.openvino.ai/2023.0/openvino_docs_install_guides_configurations_for_intel_gpu.html>`__
|
||||
OpenVINO <https://docs.openvino.ai/2023.3/openvino_docs_install_guides_configurations_for_intel_gpu.html>`__
|
||||
- `Benchmark Python
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
- `Asynchronous
|
||||
Inferencing <https://docs.openvino.ai/2023.0/openvino_docs_ie_plugin_dg_async_infer_request.html>`__
|
||||
Inferencing <https://docs.openvino.ai/2023.3/openvino_docs_ov_plugin_dg_async_infer_request.html>`__
|
||||
|
|
|
|||
|
|
@ -521,7 +521,7 @@ OpenVINO IR model + more inference threads
|
|||
There is a possibility to add a config for any device (CPU in this
|
||||
case). We will increase the number of threads to an equal number of our
|
||||
cores. There are `more
|
||||
options <https://docs.openvino.ai/2023.0/groupov_runtime_cpp_prop_api.html>`__
|
||||
options <https://docs.openvino.ai/2023.3/groupov_runtime_cpp_prop_api.html>`__
|
||||
to be changed, so it’s worth playing with them to see what works best in
|
||||
our case. In some cases, this optimization may worsen the performance.
|
||||
If it is the case, don’t use it.
|
||||
|
|
@ -555,7 +555,7 @@ OpenVINO IR model in latency mode
|
|||
|
||||
|
||||
OpenVINO offers a virtual device called
|
||||
`AUTO <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_supported_plugins_AUTO.html>`__,
|
||||
`AUTO <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_AUTO.html>`__,
|
||||
which can select the best device for us based on a performance hint.
|
||||
There are three different hints: ``LATENCY``, ``THROUGHPUT``, and
|
||||
``CUMULATIVE_THROUGHPUT``. As this notebook is focused on the latency
|
||||
|
|
@ -678,6 +678,6 @@ object detection model. Even if you experience much better performance
|
|||
after running this notebook, please note this may not be valid for every
|
||||
hardware or every model. For the most accurate results, please use
|
||||
``benchmark_app`` `command-line
|
||||
tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_samples_benchmark_app_README.html>`__.
|
||||
tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_samples_benchmark_app_README.html>`__.
|
||||
Note that ``benchmark_app`` cannot measure the impact of some tricks
|
||||
above, e.g., shared memory.
|
||||
|
|
|
|||
|
|
@ -558,7 +558,7 @@ configuration of the device. There are three different hints:
|
|||
notebook is focused on the throughput mode, we will use the latter two.
|
||||
The hints can be used with other devices as well. Throughput mode
|
||||
implicitly triggers using the `Automatic
|
||||
Batching <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_Automatic_Batching.html>`__
|
||||
Batching <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Automatic_Batching.html>`__
|
||||
feature, which sets the batch size to the optimal level.
|
||||
|
||||
.. code:: ipython3
|
||||
|
|
@ -612,7 +612,7 @@ OpenVINO IR model in throughput mode on AUTO
|
|||
|
||||
|
||||
OpenVINO offers a virtual device called
|
||||
`AUTO <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_supported_plugins_AUTO.html>`__,
|
||||
`AUTO <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_AUTO.html>`__,
|
||||
which can select the best device for us based on the aforementioned
|
||||
performance hint.
|
||||
|
||||
|
|
@ -672,7 +672,7 @@ There are other tricks for performance improvement, such as advanced
|
|||
options, quantization and pre-post-processing or dedicated to latency
|
||||
mode. To get even more from your model, please visit `advanced
|
||||
throughput
|
||||
options <https://docs.openvino.ai/2023.0/openvino_docs_deployment_optimization_guide_tput_advanced.html>`__,
|
||||
options <https://docs.openvino.ai/2023.3/openvino_docs_deployment_optimization_guide_tput_advanced.html>`__,
|
||||
`109-latency-tricks <109-latency-tricks.ipynb>`__,
|
||||
`111-detection-quantization <../111-detection-quantization>`__, and
|
||||
`118-optimize-preprocessing <../118-optimize-preprocessing>`__.
|
||||
|
|
@ -725,6 +725,6 @@ object detection model. Even if you experience much better performance
|
|||
after running this notebook, please note this may not be valid for every
|
||||
hardware or every model. For the most accurate results, please use
|
||||
``benchmark_app`` `command-line
|
||||
tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_samples_benchmark_app_README.html>`__.
|
||||
tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_samples_benchmark_app_README.html>`__.
|
||||
Note that ``benchmark_app`` cannot measure the impact of some tricks
|
||||
above.
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ Benchmark Model Performance
|
|||
---------------------------------------------------------------------
|
||||
|
||||
To measure the inference performance of the IR model, use `Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
- an inference performance measurement tool in OpenVINO. Benchmark tool
|
||||
is a command-line application that can be run in the notebook with
|
||||
``! benchmark_app`` or ``%sx benchmark_app`` commands.
|
||||
|
|
@ -311,7 +311,7 @@ Caching, refer to the `OpenVINO API
|
|||
tutorial <002-openvino-api-with-output.html>`__.
|
||||
|
||||
We will use
|
||||
`AsyncInferQueue <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_Python_API_exclusives.html#asyncinferqueue>`__
|
||||
`AsyncInferQueue <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Python_API_exclusives.html#asyncinferqueue>`__
|
||||
to perform asynchronous inference. It can be instantiated with compiled
|
||||
model and a number of jobs - parallel execution threads. If you don’t
|
||||
pass a number of jobs or pass ``0``, then OpenVINO will pick the optimal
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ scratch; the data is from
|
|||
This third tutorial in the series shows how to:
|
||||
|
||||
- Convert an Original model to OpenVINO IR with `model conversion
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
- Quantize a PyTorch model with NNCF
|
||||
- Evaluate the F1 score metric of the original model and the quantized
|
||||
model
|
||||
|
|
@ -639,7 +639,7 @@ Compare Performance of the FP32 IR Model and Quantized Models
|
|||
|
||||
To measure the inference performance of the ``FP32`` and ``INT8``
|
||||
models, we use `Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
- OpenVINO’s inference performance measurement tool. Benchmark tool is a
|
||||
command line application, part of OpenVINO development tools, that can
|
||||
be run in the notebook with ``! benchmark_app`` or
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Migrate quantization from POT API to NNCF API
|
|||
|
||||
This tutorial demonstrates how to migrate quantization pipeline written
|
||||
using the OpenVINO `Post-Training Optimization Tool
|
||||
(POT) <https://docs.openvino.ai/2023.0/pot_introduction.html>`__ to
|
||||
(POT) <https://docs.openvino.ai/2023.3/pot_introduction.html>`__ to
|
||||
`NNCF Post-Training Quantization
|
||||
API <https://docs.openvino.ai/nightly/basic_quantization_flow.html>`__.
|
||||
This tutorial is based on `Ultralytics
|
||||
|
|
@ -180,18 +180,18 @@ following content:
|
|||
|
||||
Convert the ONNX model to OpenVINO Intermediate Representation (IR)
|
||||
model generated by `OpenVINO model conversion
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
We will use the ``ov.convert_model`` function of model conversion Python
|
||||
API to convert ONNX model to OpenVINO Model, then it can be serialized
|
||||
using ``ov.save_model``. As the result, directory with the
|
||||
``{MODEL_DIR}`` name will be created with the following content: \*
|
||||
``{MODEL_NAME}_fp32.xml``, ``{MODEL_NAME}_fp32.bin`` - OpenVINO
|
||||
Intermediate Representation (IR) model generated by `OpenVINO Model
|
||||
Converter <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__,
|
||||
Converter <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__,
|
||||
saved with FP32 precision. \* ``{MODEL_NAME}_fp16.xml``,
|
||||
``{MODEL_NAME}_fp16.bin`` - OpenVINO Intermediate Representation (IR)
|
||||
model generated by `OpenVINO Model
|
||||
Converter <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__,
|
||||
Converter <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__,
|
||||
saved with FP16 precision.
|
||||
|
||||
.. code:: ipython3
|
||||
|
|
@ -467,7 +467,7 @@ Quantization parameters ``preset``, ``model_type``, ``subset_size``,
|
|||
``fast_bias_correction``, ``ignored_scope`` are arguments of function.
|
||||
More details about supported parameters and formats can be found in NNCF
|
||||
Post-Training Quantization
|
||||
`documentation <https://docs.openvino.ai/2023.0/basic_qauntization_flow.html#tune-quantization-parameters>`__.
|
||||
`documentation <https://docs.openvino.ai/2023.3/basic_quantization_flow.html#tune-quantization-parameters>`__.
|
||||
NNCF also expect providing model object in inference framework format,
|
||||
in our case ``ov.Model`` instance created using ``core.read_model`` or
|
||||
``ov.convert_model``.
|
||||
|
|
@ -1201,8 +1201,8 @@ References
|
|||
|
||||
- `Ultralytics YOLOv5 <https://github.com/ultralytics/yolov5>`__
|
||||
- `OpenVINO Post-training Optimization
|
||||
Tool <https://docs.openvino.ai/2023.0/pot_introduction.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/pot_introduction.html>`__
|
||||
- `NNCF Post-training
|
||||
quantization <https://docs.openvino.ai/nightly/basic_quantization_flow.html>`__
|
||||
quantization <https://docs.openvino.ai/2023.3/basic_quantization_flow.html>`__
|
||||
- `Model Conversion
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
|
|
|
|||
|
|
@ -495,7 +495,7 @@ layers. The framework is designed so that modifications to your original
|
|||
training code are minor. Quantization is the simplest scenario and
|
||||
requires a few modifications. For more information about NNCF Post
|
||||
Training Quantization (PTQ) API, refer to the `Basic Quantization Flow
|
||||
Guide <https://docs.openvino.ai/2023.0/basic_qauntization_flow.html#doxid-basic-qauntization-flow>`__.
|
||||
Guide <https://docs.openvino.ai/2023.3/basic_quantization_flow.html#doxid-basic-qauntization-flow>`__.
|
||||
|
||||
1. Create a transformation function that accepts a sample from the
|
||||
dataset and returns data suitable for model inference. This enables
|
||||
|
|
@ -618,7 +618,7 @@ Python API. The models will be saved to the ‘OUTPUT’ directory for later
|
|||
benchmarking.
|
||||
|
||||
For more information about model conversion, refer to this
|
||||
`page <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
`page <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
@ -738,7 +738,7 @@ IV. Compare performance of INT8 model and FP32 model in OpenVINO
|
|||
|
||||
Finally, measure the inference performance of the ``FP32`` and ``INT8``
|
||||
models, using `Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
- an inference performance measurement tool in OpenVINO. By default,
|
||||
Benchmark Tool runs inference for 60 seconds in asynchronous mode on
|
||||
CPU. It returns inference speed as latency (milliseconds per image) and
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ static shape. The converted model is ready to be loaded on a device for
|
|||
inference and can be saved on a disk for next usage via the
|
||||
``save_model`` function. More details about model conversion Python API
|
||||
can be found on this
|
||||
`page <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
`page <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
@ -221,7 +221,7 @@ dataset for performing basic quantization. Optionally, additional
|
|||
parameters like ``subset_size``, ``preset``, ``ignored_scope`` can be
|
||||
provided to improve quantization result if applicable. More details
|
||||
about supported parameters can be found on this
|
||||
`page <https://docs.openvino.ai/2023.0/basic_quantization_flow.html#tune-quantization-parameters>`__
|
||||
`page <https://docs.openvino.ai/2023.3/basic_quantization_flow.html#tune-quantization-parameters>`__
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
@ -382,7 +382,7 @@ Compare Performance of the Original and Quantized Models
|
|||
|
||||
Finally, measure the inference performance of the ``FP32`` and ``INT8``
|
||||
models, using `Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
- an inference performance measurement tool in OpenVINO.
|
||||
|
||||
**NOTE**: For more accurate performance, it is recommended to run
|
||||
|
|
|
|||
|
|
@ -491,7 +491,7 @@ Compare the performance
|
|||
|
||||
|
||||
Asynchronous mode pipelines can be supported with the
|
||||
`AsyncInferQueue <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_Python_API_exclusives.html#asyncinferqueue>`__
|
||||
`AsyncInferQueue <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Python_API_exclusives.html#asyncinferqueue>`__
|
||||
wrapper class. This class automatically spawns the pool of
|
||||
``InferRequest`` objects (also called “jobs”) and provides
|
||||
synchronization mechanisms to control the flow of the pipeline. It is a
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ datasets <https://huggingface.co/datasets/sst2>`__ using
|
|||
`Optimum-Intel <https://github.com/huggingface/optimum-intel>`__. It
|
||||
demonstrates the inference performance advantage on 4th Gen Intel® Xeon®
|
||||
Scalable Processors by running it with `Sparse Weight
|
||||
Decompression <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_supported_plugins_CPU.html#sparse-weights-decompression>`__,
|
||||
Decompression <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_CPU.html#sparse-weights-decompression>`__,
|
||||
a runtime option that seizes model sparsity for efficiency. The notebook
|
||||
consists of the following steps:
|
||||
|
||||
|
|
@ -394,6 +394,6 @@ For more details about asynchronous inference with OpenVINO, refer to
|
|||
the following documentation:
|
||||
|
||||
- `Deployment Optimization
|
||||
Guide <https://docs.openvino.ai/2023.0/openvino_docs_deployment_optimization_guide_common.html#doxid-openvino-docs-deployment-optimization-guide-common-1async-api>`__
|
||||
Guide <https://docs.openvino.ai/2023.3/openvino_docs_deployment_optimization_guide_common.html#doxid-openvino-docs-deployment-optimization-guide-common-1async-api>`__
|
||||
- `Inference Request
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_Infer_request.html#doxid-openvino-docs-o-v-u-g-infer-request-1in-out-tensors>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Infer_request.html#doxid-openvino-docs-o-v-u-g-infer-request-1in-out-tensors>`__
|
||||
|
|
|
|||
|
|
@ -231,7 +231,7 @@ Check whether the OVMS container is running normally:
|
|||
|
||||
The required Model Server parameters are listed below. For additional
|
||||
configuration options, see the `Model Server Parameters
|
||||
section <https://docs.openvino.ai/2023.0/ovms_docs_parameters.html#doxid-ovms-docs-parameters>`__.
|
||||
section <https://docs.openvino.ai/2023.3/ovms_docs_parameters.html#doxid-ovms-docs-parameters>`__.
|
||||
|
||||
.. raw:: html
|
||||
|
||||
|
|
@ -888,6 +888,6 @@ References
|
|||
----------------------------------------------------
|
||||
|
||||
1. `OpenVINO™ Model Server
|
||||
documentation <https://docs.openvino.ai/2023.0/ovms_what_is_openvino_model_server.html>`__
|
||||
documentation <https://docs.openvino.ai/2023.3/ovms_what_is_openvino_model_server.html>`__
|
||||
2. `OpenVINO™ Model Server GitHub
|
||||
repository <https://github.com/openvinotoolkit/model_server/>`__
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ instrument, that enables integration of preprocessing steps into an
|
|||
execution graph and performing it on a selected device, which can
|
||||
improve device utilization. For more information about Preprocessing
|
||||
API, see this
|
||||
`overview <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_Preprocessing_Overview.html#>`__
|
||||
`overview <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Preprocessing_Overview.html#>`__
|
||||
and
|
||||
`details <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_Preprocessing_Details.html>`__
|
||||
`details <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Preprocessing_Details.html>`__
|
||||
|
||||
This tutorial include following steps:
|
||||
|
||||
|
|
@ -268,7 +268,7 @@ Graph modifications of a model shall be performed after the model is
|
|||
read from a drive and before it is loaded on the actual device.
|
||||
|
||||
Pre-processing support following operations (please, see more details
|
||||
`here <https://docs.openvino.ai/2023.0/classov_1_1preprocess_1_1PreProcessSteps.html#doxid-classov-1-1preprocess-1-1-pre-process-steps-1aeacaf406d72a238e31a359798ebdb3b7>`__)
|
||||
`here <https://docs.openvino.ai/2023.3/classov_1_1preprocess_1_1PreProcessSteps.html#doxid-classov-1-1preprocess-1-1-pre-process-steps-1aeacaf406d72a238e31a359798ebdb3b7>`__)
|
||||
|
||||
- Mean/Scale Normalization
|
||||
- Converting Precision
|
||||
|
|
@ -304,7 +304,7 @@ Create ``PrePostProcessor`` Object
|
|||
|
||||
|
||||
The
|
||||
`PrePostProcessor() <https://docs.openvino.ai/2023.0/classov_1_1preprocess_1_1PrePostProcessor.html#doxid-classov-1-1preprocess-1-1-pre-post-processor>`__
|
||||
`PrePostProcessor() <https://docs.openvino.ai/2023.3/classov_1_1preprocess_1_1PrePostProcessor.html#doxid-classov-1-1preprocess-1-1-pre-post-processor>`__
|
||||
class enables specifying the preprocessing and postprocessing steps for
|
||||
a model.
|
||||
|
||||
|
|
@ -329,7 +329,7 @@ about user’s input tensor will be initialized to same data
|
|||
(type/shape/etc) as model’s input parameter. User application can
|
||||
override particular parameters according to application’s data. Refer to
|
||||
the following
|
||||
`page <https://docs.openvino.ai/2023.0/classov_1_1preprocess_1_1InputTensorInfo.html#doxid-classov-1-1preprocess-1-1-input-tensor-info-1a98fb73ff9178c8c71d809ddf8927faf5>`__
|
||||
`page <https://docs.openvino.ai/2023.3/classov_1_1preprocess_1_1InputTensorInfo.html#doxid-classov-1-1preprocess-1-1-input-tensor-info-1a98fb73ff9178c8c71d809ddf8927faf5>`__
|
||||
for more information about parameters for overriding.
|
||||
|
||||
Below is all the specified input information:
|
||||
|
|
@ -367,7 +367,7 @@ Declaring Model Layout
|
|||
Model input already has information about precision and shape.
|
||||
Preprocessing API is not intended to modify this. The only thing that
|
||||
may be specified is input data
|
||||
`layout <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_Layout_Overview.html#doxid-openvino-docs-o-v-u-g-layout-overview>`__.
|
||||
`layout <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Layout_Overview.html#doxid-openvino-docs-o-v-u-g-layout-overview>`__.
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
@ -397,7 +397,7 @@ Preprocessing Steps
|
|||
|
||||
Now, the sequence of preprocessing steps can be defined. For more
|
||||
information about preprocessing steps, see
|
||||
`here <https://docs.openvino.ai/2023.0/api/ie_python_api/_autosummary/openvino.preprocess.PreProcessSteps.html>`__.
|
||||
`here <https://docs.openvino.ai/2023.3/api/ie_python_api/_autosummary/openvino.preprocess.PreProcessSteps.html>`__.
|
||||
|
||||
Perform the following:
|
||||
|
||||
|
|
@ -406,7 +406,7 @@ Perform the following:
|
|||
dynamic size, for example, ``{?, 3, ?, ?}`` resize will not know how
|
||||
to resize the picture. Therefore, in this case, target height/ width
|
||||
should be specified. For more details, see also the
|
||||
`PreProcessSteps.resize() <https://docs.openvino.ai/2023.0/classov_1_1preprocess_1_1PreProcessSteps.html#doxid-classov-1-1preprocess-1-1-pre-process-steps-1a40dab78be1222fee505ed6a13400efe6>`__.
|
||||
`PreProcessSteps.resize() <https://docs.openvino.ai/2023.3/classov_1_1preprocess_1_1PreProcessSteps.html#doxid-classov-1-1preprocess-1-1-pre-process-steps-1a40dab78be1222fee505ed6a13400efe6>`__.
|
||||
- Subtract mean from each channel.
|
||||
- Divide each pixel data to appropriate scale value.
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ machine learning models to edge devices.
|
|||
This short tutorial shows how to convert a TensorFlow Lite
|
||||
`EfficientNet-Lite-B0 <https://tfhub.dev/tensorflow/lite-model/efficientnet/lite0/fp32/2>`__
|
||||
image classification model to OpenVINO `Intermediate
|
||||
Representation <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_IR_and_opsets.html>`__
|
||||
Representation <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_IR_and_opsets.html>`__
|
||||
(OpenVINO IR) format, using Model Converter. After creating the OpenVINO
|
||||
IR, load the model in `OpenVINO
|
||||
Runtime <https://docs.openvino.ai/nightly/openvino_docs_OV_UG_OV_Runtime_User_Guide.html>`__
|
||||
|
|
@ -120,9 +120,9 @@ using ``ov.save_model`` function, reducing loading time for next
|
|||
running. By default, model weights are compressed to FP16 during
|
||||
serialization by ``ov.save_model``. For more information about model
|
||||
conversion, see this
|
||||
`page <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
`page <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
For TensorFlow Lite models support, refer to this
|
||||
`tutorial <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow_Lite.html>`__.
|
||||
`tutorial <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow_Lite.html>`__.
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@ This tutorial shows how to convert a TensorFlow `Mask R-CNN with
|
|||
Inception ResNet
|
||||
V2 <https://tfhub.dev/tensorflow/mask_rcnn/inception_resnet_v2_1024x1024/1>`__
|
||||
instance segmentation model to OpenVINO `Intermediate
|
||||
Representation <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_IR_and_opsets.html>`__
|
||||
Representation <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_IR_and_opsets.html>`__
|
||||
(OpenVINO IR) format, using `Model
|
||||
Optimizer <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_Deep_Learning_Model_Optimizer_DevGuide.html>`__.
|
||||
Optimizer <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_Deep_Learning_Model_Optimizer_DevGuide.html>`__.
|
||||
After creating the OpenVINO IR, load the model in `OpenVINO
|
||||
Runtime <https://docs.openvino.ai/nightly/openvino_docs_OV_UG_OV_Runtime_User_Guide.html>`__
|
||||
and do inference with a sample image.
|
||||
|
|
@ -689,4 +689,4 @@ utilization.
|
|||
For more information, refer to the `Optimize Preprocessing
|
||||
tutorial <118-optimize-preprocessing-with-output.html>`__
|
||||
and to the overview of `Preprocessing
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_OV_Runtime_UG_Preprocessing_Overview.html>`__.
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Preprocessing_Details.html>`__.
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ This tutorial shows how to convert a TensorFlow `Faster R-CNN with
|
|||
Resnet-50
|
||||
V1 <https://tfhub.dev/tensorflow/faster_rcnn/resnet50_v1_640x640/1>`__
|
||||
object detection model to OpenVINO `Intermediate
|
||||
Representation <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_IR_and_opsets.html>`__
|
||||
Representation <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_IR_and_opsets.html>`__
|
||||
(OpenVINO IR) format, using Model Converter. After creating the OpenVINO
|
||||
IR, load the model in `OpenVINO
|
||||
Runtime <https://docs.openvino.ai/nightly/openvino_docs_OV_UG_OV_Runtime_User_Guide.html>`__
|
||||
|
|
@ -189,9 +189,9 @@ or saved on disk using the ``save_model`` function to reduce loading
|
|||
time when the model is run in the future.
|
||||
|
||||
See the `Model Converter Developer
|
||||
Guide <https://docs.openvino.ai/2023.1/openvino_docs_model_processing_introduction.html>`__
|
||||
Guide <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
for more information about Model Converter and TensorFlow `models
|
||||
support <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow.html>`__.
|
||||
support <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow.html>`__.
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
@ -709,4 +709,4 @@ utilization.
|
|||
For more information, refer to the `Optimize Preprocessing
|
||||
tutorial <118-optimize-preprocessing-with-output.html>`__
|
||||
and to the overview of `Preprocessing
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_OV_Runtime_UG_Preprocessing_Overview.html>`__.
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Preprocessing_Details.html>`__.
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ OpenVINO IR format
|
|||
|
||||
|
||||
OpenVINO `Intermediate Representation
|
||||
(IR) <https://docs.openvino.ai/2023.0/openvino_ir.html>`__ is the
|
||||
(IR) <https://docs.openvino.ai/2023.3/openvino_ir.html>`__ is the
|
||||
proprietary model format of OpenVINO. It is produced after converting a
|
||||
model with model conversion API. Model conversion API translates the
|
||||
frequently used deep learning operations to their respective similar
|
||||
|
|
@ -71,7 +71,7 @@ tool. You can choose one of them based on whichever is most convenient
|
|||
for you. There should not be any differences in the results of model
|
||||
conversion if the same set of parameters is used. For more details,
|
||||
refer to `Model
|
||||
Preparation <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__
|
||||
Preparation <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
documentation.
|
||||
|
||||
.. code:: ipython3
|
||||
|
|
@ -1007,9 +1007,9 @@ To convert a model to OpenVINO IR, use the following command:
|
|||
.. parsed-literal::
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/distilbert.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/distilbert.bin
|
||||
|
|
@ -1046,20 +1046,20 @@ Both Python conversion API and Model Optimizer command-line tool provide
|
|||
the following capabilities: \* overriding original input shapes for
|
||||
model conversion with ``input`` and ``input_shape`` parameters. `Setting
|
||||
Input Shapes
|
||||
guide <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_prepare_model_convert_model_Converting_Model.html>`__.
|
||||
guide <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_prepare_model_convert_model_Converting_Model.html>`__.
|
||||
\* cutting off unwanted parts of a model (such as unsupported operations
|
||||
and training sub-graphs) using the ``input`` and ``output`` parameters
|
||||
to define new inputs and outputs of the converted model. `Cutting Off
|
||||
Parts of a Model
|
||||
guide <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_prepare_model_convert_model_Cutting_Model.html>`__.
|
||||
guide <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_prepare_model_convert_model_Cutting_Model.html>`__.
|
||||
\* inserting additional input pre-processing sub-graphs into the
|
||||
converted model by using the ``mean_values``, ``scales_values``,
|
||||
``layout``, and other parameters. `Embedding Preprocessing Computation
|
||||
article <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_Additional_Optimization_Use_Cases.html>`__.
|
||||
article <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_Additional_Optimization_Use_Cases.html>`__.
|
||||
\* compressing the model weights (for example, weights for convolutions
|
||||
and matrix multiplications) to FP16 data type using ``compress_to_fp16``
|
||||
compression parameter. `Compression of a Model to FP16
|
||||
guide <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html>`__.
|
||||
guide <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html>`__.
|
||||
|
||||
If the out-of-the-box conversion (only the ``input_model`` parameter is
|
||||
specified) is not successful, it may be required to use the parameters
|
||||
|
|
@ -1080,7 +1080,7 @@ up static shapes, model conversion API provides the ``input`` and
|
|||
``input_shape`` parameters.
|
||||
|
||||
For more information refer to `Setting Input Shapes
|
||||
guide <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_prepare_model_convert_model_Converting_Model.html>`__.
|
||||
guide <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_prepare_model_convert_model_Converting_Model.html>`__.
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
@ -1103,9 +1103,9 @@ guide <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_prepare_model_convert
|
|||
.. parsed-literal::
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/distilbert.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/distilbert.bin
|
||||
|
|
@ -1122,9 +1122,9 @@ guide <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_prepare_model_convert
|
|||
.. parsed-literal::
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/distilbert.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/distilbert.bin
|
||||
|
|
@ -1173,9 +1173,9 @@ sequence length dimension for inputs:
|
|||
.. parsed-literal::
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/distilbert.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/distilbert.bin
|
||||
|
|
@ -1218,9 +1218,9 @@ dimension:
|
|||
.. parsed-literal::
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/distilbert.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/distilbert.bin
|
||||
|
|
@ -1261,7 +1261,7 @@ required:
|
|||
|
||||
For a more detailed description, refer to the `Cutting Off Parts of a
|
||||
Model
|
||||
guide <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_prepare_model_convert_model_Cutting_Model.html>`__.
|
||||
guide <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_prepare_model_convert_model_Cutting_Model.html>`__.
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
@ -1286,9 +1286,9 @@ guide <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_prepare_model_convert
|
|||
.. parsed-literal::
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/distilbert.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/distilbert.bin
|
||||
|
|
@ -1305,9 +1305,9 @@ guide <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_prepare_model_convert
|
|||
.. parsed-literal::
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/distilbert.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/distilbert.bin
|
||||
|
|
@ -1344,7 +1344,7 @@ This preprocessing block can perform mean-scale normalization of input
|
|||
data, reverting data along channel dimension, and changing the data
|
||||
layout. For more information on preprocessing, refer to the `Embedding
|
||||
Preprocessing Computation
|
||||
article <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_Additional_Optimization_Use_Cases.html>`__.
|
||||
article <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_Additional_Optimization_Use_Cases.html>`__.
|
||||
|
||||
Specifying Layout
|
||||
^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -1356,7 +1356,7 @@ for both inputs and outputs. Some preprocessing requires to set input
|
|||
layouts, for example, setting a batch, applying mean or scales, and
|
||||
reversing input channels (BGR<->RGB). For the layout syntax, check the
|
||||
`Layout API
|
||||
overview <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_Layout_Overview.html>`__.
|
||||
overview <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Layout_Overview.html>`__.
|
||||
To specify the layout, you can use the layout option followed by the
|
||||
layout value.
|
||||
|
||||
|
|
@ -1381,9 +1381,9 @@ Resnet50 model that was exported to the ONNX format:
|
|||
.. parsed-literal::
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/resnet.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/resnet.bin
|
||||
|
|
@ -1427,9 +1427,9 @@ presented by input data. Use either ``layout`` or ``source_layout`` with
|
|||
.. parsed-literal::
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/resnet.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/resnet.bin
|
||||
|
|
@ -1446,9 +1446,9 @@ presented by input data. Use either ``layout`` or ``source_layout`` with
|
|||
.. parsed-literal::
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/resnet.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/resnet.bin
|
||||
|
|
@ -1498,9 +1498,9 @@ that the preprocessing takes negligible time for inference.
|
|||
.. parsed-literal::
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/resnet.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/resnet.bin
|
||||
|
|
@ -1517,9 +1517,9 @@ that the preprocessing takes negligible time for inference.
|
|||
.. parsed-literal::
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/resnet.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/resnet.bin
|
||||
|
|
@ -1566,9 +1566,9 @@ the color channels before inference.
|
|||
.. parsed-literal::
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/resnet.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/resnet.bin
|
||||
|
|
@ -1611,9 +1611,9 @@ models, this decrease is negligible.
|
|||
.. parsed-literal::
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/resnet.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/121-convert-to-openvino/model/resnet.bin
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ The advanced quantization flow allows to apply 8-bit quantization to the
|
|||
model with control of accuracy metric. This is achieved by keeping the
|
||||
most impactful operations within the model in the original precision.
|
||||
The flow is based on the `Basic 8-bit
|
||||
quantization <https://docs.openvino.ai/2023.0/basic_quantization_flow.html>`__
|
||||
quantization <https://docs.openvino.ai/2023.3/basic_quantization_flow.html>`__
|
||||
and has the following differences:
|
||||
|
||||
- Besides the calibration dataset, a validation dataset is required to
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ quantization flow allows to apply 8-bit quantization to the model with
|
|||
control of accuracy metric. This is achieved by keeping the most
|
||||
impactful operations within the model in the original precision. The
|
||||
flow is based on the `Basic 8-bit
|
||||
quantization <https://docs.openvino.ai/2023.0/basic_quantization_flow.html>`__
|
||||
quantization <https://docs.openvino.ai/2023.3/basic_quantization_flow.html>`__
|
||||
and has the following differences:
|
||||
|
||||
- Besides the calibration dataset, a validation dataset is required to
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ Converting the Model to OpenVINO IR format
|
|||
|
||||
We use the OpenVINO `Model
|
||||
conversion
|
||||
API <https://docs.openvino.ai/2023.1/openvino_docs_model_processing_introduction.html#convert-a-model-in-python-convert-model>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html#convert-a-model-in-python-convert-model>`__
|
||||
to convert the model (this one is implemented in PyTorch) to OpenVINO
|
||||
Intermediate Representation (IR).
|
||||
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ Convert the original model to OpenVINO IR Format
|
|||
To convert the original model to OpenVINO IR with ``FP16`` precision,
|
||||
use model conversion API. The models are saved inside the current
|
||||
directory. For more information on how to convert models, see this
|
||||
`page <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
`page <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Monodepth Estimation with OpenVINO
|
|||
|
||||
This tutorial demonstrates Monocular Depth Estimation with MidasNet in
|
||||
OpenVINO. Model information can be found
|
||||
`here <https://docs.openvino.ai/2023.0/omz_models_model_midasnet.html>`__.
|
||||
`here <https://docs.openvino.ai/2023.3/omz_models_model_midasnet.html>`__.
|
||||
|
||||
.. figure:: https://user-images.githubusercontent.com/36741649/127173017-a0bbcf75-db24-4d2c-81b9-616e04ab7cd9.gif
|
||||
:alt: monodepth
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Super Resolution is the process of enhancing the quality of an image by
|
|||
increasing the pixel count using deep learning. This notebook shows the
|
||||
Single Image Super Resolution (SISR) which takes just one low resolution
|
||||
image. A model called
|
||||
`single-image-super-resolution-1032 <https://docs.openvino.ai/2023.0/omz_models_model_single_image_super_resolution_1032.html>`__,
|
||||
`single-image-super-resolution-1032 <https://docs.openvino.ai/2023.3/omz_models_model_single_image_super_resolution_1032.html>`__,
|
||||
which is available in Open Model Zoo, is used in this tutorial. It is
|
||||
based on the research paper cited below.
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Super Resolution is the process of enhancing the quality of an image by
|
|||
increasing the pixel count using deep learning. This notebook applies
|
||||
Single Image Super Resolution (SISR) to frames in a 360p (480×360) video
|
||||
in 360p resolution. A model called
|
||||
`single-image-super-resolution-1032 <https://docs.openvino.ai/2023.0/omz_models_model_single_image_super_resolution_1032.html>`__,
|
||||
`single-image-super-resolution-1032 <https://docs.openvino.ai/2023.3/omz_models_model_single_image_super_resolution_1032.html>`__,
|
||||
which is available in Open Model Zoo, is used in this tutorial. It is
|
||||
based on the research paper cited below.
|
||||
|
||||
|
|
|
|||
|
|
@ -580,7 +580,7 @@ select device from dropdown list for running inference using OpenVINO
|
|||
The number of detected meter from detection network can be arbitrary in
|
||||
some scenarios, which means the batch size of segmentation network input
|
||||
is a `dynamic
|
||||
dimension <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_DynamicShapes.html>`__,
|
||||
dimension <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_DynamicShapes.html>`__,
|
||||
and it should be specified as ``-1`` or the ``ov::Dimension()`` instead
|
||||
of a positive number used for static dimensions. In this case, for
|
||||
memory consumption optimization, we can specify the lower and/or upper
|
||||
|
|
|
|||
|
|
@ -568,7 +568,7 @@ Benchmarking performance of converted model
|
|||
|
||||
|
||||
Finally, use the OpenVINO `Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
to measure the inference performance of the model.
|
||||
|
||||
NOTE: For more accurate performance, it is recommended to run
|
||||
|
|
|
|||
|
|
@ -411,7 +411,7 @@ References
|
|||
- `PIP install
|
||||
openvino-dev <https://github.com/openvinotoolkit/openvino/blob/releases/2021/3/docs/install_guides/pypi-openvino-dev.md>`__
|
||||
- `Model Conversion
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
- `U^2-Net <https://github.com/xuebinqin/U-2-Net>`__
|
||||
- U^2-Net research paper: `U^2-Net: Going Deeper with Nested
|
||||
U-Structure for Salient Object
|
||||
|
|
|
|||
|
|
@ -366,7 +366,7 @@ feeding them to the converted model.
|
|||
Now we use model conversion API and convert the model to OpenVINO IR.
|
||||
|
||||
**Convert ONNX Model to OpenVINO IR with**\ `Model Conversion Python
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
@ -602,7 +602,7 @@ References
|
|||
- `OpenVINO ONNX
|
||||
support <https://docs.openvino.ai/2021.4/openvino_docs_IE_DG_ONNX_Support.html>`__
|
||||
- `Model Conversion
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
|
||||
The PaddleGAN code that is shown in this notebook is written by
|
||||
PaddlePaddle Authors and licensed under the Apache 2.0 license. The
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ Convert PaddlePaddle Model to ONNX
|
|||
2023-10-30 23:18:47 [INFO] ONNX model saved in model/paddlegan_sr.onnx.
|
||||
|
||||
|
||||
Convert ONNX Model to OpenVINO IR with `Model Conversion Python API <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__
|
||||
Convert ONNX Model to OpenVINO IR with `Model Conversion Python API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code:: ipython3
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ This tutorial demonstrates how to perform optical character recognition
|
|||
tutorial, which shows only text detection.
|
||||
|
||||
The
|
||||
`horizontal-text-detection-0001 <https://docs.openvino.ai/2023.0/omz_models_model_horizontal_text_detection_0001.html>`__
|
||||
`horizontal-text-detection-0001 <https://docs.openvino.ai/2023.3/omz_models_model_horizontal_text_detection_0001.html>`__
|
||||
and
|
||||
`text-recognition-resnet <https://docs.openvino.ai/2023.0/omz_models_model_text_recognition_resnet_fc.html>`__
|
||||
`text-recognition-resnet <https://docs.openvino.ai/2023.3/omz_models_model_text_recognition_resnet_fc.html>`__
|
||||
models are used together for text detection and then text recognition.
|
||||
|
||||
In this tutorial, Open Model Zoo tools including Model Downloader, Model
|
||||
|
|
@ -355,9 +355,9 @@ Converting text-recognition-resnet-fc…
|
|||
Conversion command: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-534/.workspace/scm/ov-notebook/.venv/bin/python -- /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-534/.workspace/scm/ov-notebook/.venv/bin/mo --framework=onnx --output_dir=model/public/text-recognition-resnet-fc/FP16 --model_name=text-recognition-resnet-fc --input=input '--mean_values=input[127.5]' '--scale_values=input[127.5]' --output=output --input_model=model/public/text-recognition-resnet-fc/resnet_fc.onnx '--layout=input(NCHW)' '--input_shape=[1, 1, 32, 100]' --compress_to_fp16=True
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-534/.workspace/scm/ov-notebook/notebooks/208-optical-character-recognition/model/public/text-recognition-resnet-fc/FP16/text-recognition-resnet-fc.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-534/.workspace/scm/ov-notebook/notebooks/208-optical-character-recognition/model/public/text-recognition-resnet-fc/FP16/text-recognition-resnet-fc.bin
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ Latin alphabet is available in `notebook
|
|||
This model is capable of processing only one line of symbols at a time.
|
||||
|
||||
The models used in this notebook are
|
||||
`handwritten-japanese-recognition-0001 <https://docs.openvino.ai/2023.0/omz_models_model_handwritten_japanese_recognition_0001.html>`__
|
||||
`handwritten-japanese-recognition-0001 <https://docs.openvino.ai/2023.3/omz_models_model_handwritten_japanese_recognition_0001.html>`__
|
||||
and
|
||||
`handwritten-simplified-chinese-0001 <https://docs.openvino.ai/2023.0/omz_models_model_handwritten_simplified_chinese_recognition_0001.html>`__.
|
||||
`handwritten-simplified-chinese-0001 <https://docs.openvino.ai/2023.3/omz_models_model_handwritten_simplified_chinese_recognition_0001.html>`__.
|
||||
To decode model outputs as readable text
|
||||
`kondate_nakayosi <https://github.com/openvinotoolkit/open_model_zoo/blob/master/data/dataset_classes/kondate_nakayosi.txt>`__
|
||||
and
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ Download ``gmcnn-places2-tf``\ model (this step will be skipped if the
|
|||
model is already downloaded) and then unzip it. Downloaded model stored
|
||||
in TensorFlow frozen graph format. The steps how this frozen graph can
|
||||
be obtained from original model checkpoint can be found in this
|
||||
`instruction <https://docs.openvino.ai/2023.0/omz_models_model_gmcnn_places2_tf.html#steps-to-reproduce-conversion-to-frozen-graph>`__
|
||||
`instruction <https://docs.openvino.ai/2023.3/omz_models_model_gmcnn_places2_tf.html#steps-to-reproduce-conversion-to-frozen-graph>`__
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
@ -95,7 +95,7 @@ Convert Tensorflow model to OpenVINO IR format
|
|||
The pre-trained model is in TensorFlow format. To use it with OpenVINO,
|
||||
convert it to OpenVINO IR format with model conversion API. For more
|
||||
information about model conversion, see this
|
||||
`page <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
`page <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
This step is also skipped if the model is already converted.
|
||||
|
||||
.. code:: ipython3
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ The attention-center model is pre-trained model in TensorFlow Lite
|
|||
format. In this Notebook the model will be converted to OpenVINO IR
|
||||
format with model conversion API. For more information about model
|
||||
conversion, see this
|
||||
`page <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
`page <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
This step is also skipped if the model is already converted.
|
||||
|
||||
Also TFLite models format is supported in OpenVINO by TFLite frontend,
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ DeblurGAN-v2 in OpenVINO, by first converting the
|
|||
`VITA-Group/DeblurGANv2 <https://github.com/VITA-Group/DeblurGANv2>`__
|
||||
model to OpenVINO Intermediate Representation (OpenVINO IR) format. For
|
||||
more information about the model, see the
|
||||
`documentation <https://docs.openvino.ai/2023.0/omz_models_model_deblurgan_v2.html>`__.
|
||||
`documentation <https://docs.openvino.ai/2023.3/omz_models_model_deblurgan_v2.html>`__.
|
||||
|
||||
What is deblurring?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
@ -223,7 +223,7 @@ an OpenVINO model ready to load on a device and start making
|
|||
predictions. We can save the model on the disk for next usage with
|
||||
``ov.save_model``. For more information about model conversion Python
|
||||
API, see this
|
||||
`page <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
`page <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
|
||||
Model conversion may take a while.
|
||||
|
||||
|
|
|
|||
|
|
@ -514,7 +514,7 @@ Benchmark the converted OpenVINO model using benchmark app
|
|||
The OpenVINO toolkit provides a benchmarking application to gauge the
|
||||
platform specific runtime performance that can be obtained under optimal
|
||||
configuration parameters for a given model. For more details refer to:
|
||||
https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html
|
||||
https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html
|
||||
|
||||
Here, we use the benchmark application to obtain performance estimates
|
||||
under optimal configuration for the knowledge graph model inference. We
|
||||
|
|
@ -613,7 +613,7 @@ evaluation on the knowledge graph. Then, we determine the platform
|
|||
specific speedup in runtime performance that can be obtained through
|
||||
OpenVINO graph optimizations. To learn more about the OpenVINO
|
||||
performance optimizations, refer to:
|
||||
https://docs.openvino.ai/2023.0/openvino_docs_optimization_guide_dldt_optimization_guide.html
|
||||
https://docs.openvino.ai/2023.3/openvino_docs_deployment_optimization_guide_dldt_optimization_guide.html
|
||||
|
||||
References
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -475,7 +475,7 @@ Optimize the Model with OpenVINO
|
|||
|
||||
The LaBSE model is quite large and can be slow to infer on some
|
||||
hardware, so let’s optimize it with OpenVINO. `Model conversion Python
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_Deep_Learning_Model_Optimizer_DevGuide.html>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_Deep_Learning_Model_Optimizer_DevGuide.html>`__
|
||||
accepts the PyTorch/Transformers model object and additional information
|
||||
about model inputs. An ``example_input`` is needed to trace the model
|
||||
execution graph, as PyTorch constructs it dynamically during inference.
|
||||
|
|
@ -855,7 +855,7 @@ the pipeline - getting embeddings. You might wonder why, when using
|
|||
OpenVINO, you need to compile the model after reading it. There are two
|
||||
main reasons for this: 1. Compatibility with different devices. The
|
||||
model can be compiled to run on a `specific
|
||||
device <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_Working_with_devices.html>`__,
|
||||
device <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Working_with_devices.html>`__,
|
||||
like CPU, GPU or GNA. Each device may work with different data types,
|
||||
support different features, and gain performance by changing the neural
|
||||
network for a specific computing model. With OpenVINO, you do not need
|
||||
|
|
@ -864,13 +864,13 @@ hardware. A universal OpenVINO model representation is enough. 1.
|
|||
Optimization for different scenarios. For example, one scenario
|
||||
prioritizes minimizing the *time between starting and finishing model
|
||||
inference* (`latency-oriented
|
||||
optimization <https://docs.openvino.ai/2023.0/openvino_docs_deployment_optimization_guide_latency.html>`__).
|
||||
optimization <https://docs.openvino.ai/2023.3/openvino_docs_deployment_optimization_guide_latency.html>`__).
|
||||
In our case, it is more important *how many texts per second the model
|
||||
can process* (`throughput-oriented
|
||||
optimization <https://docs.openvino.ai/2023.0/openvino_docs_deployment_optimization_guide_tput.html>`__).
|
||||
optimization <https://docs.openvino.ai/2023.3/openvino_docs_deployment_optimization_guide_tput.html>`__).
|
||||
|
||||
To get a throughput-optimized model, pass a `performance
|
||||
hint <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_Performance_Hints.html#performance-hints-latency-and-throughput>`__
|
||||
hint <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Performance_Hints.html#performance-hints-latency-and-throughput>`__
|
||||
as a configuration during compilation. Then OpenVINO selects the optimal
|
||||
parameters for execution on the available hardware.
|
||||
|
||||
|
|
@ -934,7 +934,7 @@ advance and fill it in as the inference requests are executed.
|
|||
Let’s compare the models and plot the results.
|
||||
|
||||
**Note**: To get a more accurate benchmark, use the `Benchmark Python
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
@ -1043,8 +1043,8 @@ boost.
|
|||
|
||||
Here are useful links with information about the techniques used in this
|
||||
notebook: - `OpenVINO performance
|
||||
hints <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_Performance_Hints.html>`__
|
||||
hints <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Performance_Hints.html>`__
|
||||
- `OpenVINO Async
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_deployment_optimization_guide_common.html#prefer-openvino-async-api>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_deployment_optimization_guide_common.html#prefer-openvino-async-api>`__
|
||||
- `Throughput
|
||||
Optimizations <https://docs.openvino.ai/2023.0/openvino_docs_deployment_optimization_guide_tput.html>`__
|
||||
Optimizations <https://docs.openvino.ai/2023.3/openvino_docs_deployment_optimization_guide_tput.html>`__
|
||||
|
|
|
|||
|
|
@ -233,9 +233,9 @@ respectively
|
|||
Conversion command: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-534/.workspace/scm/ov-notebook/.venv/bin/python -- /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-534/.workspace/scm/ov-notebook/.venv/bin/mo --framework=onnx --output_dir=models/public/colorization-v2/FP16 --model_name=colorization-v2 --input=data_l --output=color_ab --input_model=models/public/colorization-v2/colorization-v2-eccv16.onnx '--layout=data_l(NCHW)' '--input_shape=[1, 1, 256, 256]' --compress_to_fp16=True
|
||||
|
||||
[ INFO ] Generated IR will be compressed to FP16. If you get lower accuracy, please consider disabling compression explicitly by adding argument --compress_to_fp16=False.
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_FP16_Compression.html
|
||||
Find more information about compression to FP16 at https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_FP16_Compression.html
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-534/.workspace/scm/ov-notebook/notebooks/222-vision-image-colorization/models/public/colorization-v2/FP16/colorization-v2.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-534/.workspace/scm/ov-notebook/notebooks/222-vision-image-colorization/models/public/colorization-v2/FP16/colorization-v2.bin
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ converted to OpenVINO Intermediate Representation (IR) format.
|
|||
HuggingFace provides a GPT-Neo model in PyTorch format, which is
|
||||
supported in OpenVINO via Model Conversion API. The ``ov.convert_model``
|
||||
Python function of `model conversion
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
can be used for converting the model. The function returns instance of
|
||||
OpenVINO Model class, which is ready to use in Python interface. The
|
||||
Model can also be save on device in OpenVINO IR format for future
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ function returns an OpenVINO model ready to load on a device and start
|
|||
making predictions. We can save it on a disk for next usage with
|
||||
``ov.save_model``. For more information about model conversion Python
|
||||
API, see this
|
||||
`page <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
`page <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
|
|||
|
|
@ -304,7 +304,7 @@ While ONNX models are directly
|
|||
supported by OpenVINO runtime, it can be useful to convert them to IR
|
||||
format to take the advantage of OpenVINO model conversion API features.
|
||||
The ``ov.convert_model`` python function of `model conversion
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
can be used for converting the model. The function returns instance of
|
||||
OpenVINO Model class, which is ready to use in Python interface.
|
||||
However, it can also be save on device in OpenVINO IR format using
|
||||
|
|
@ -996,7 +996,7 @@ Compare Performance of the Original and Quantized Models
|
|||
|
||||
|
||||
Finally, use the OpenVINO `Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
to measure the inference performance of the ``FP32`` and ``INT8``
|
||||
models.
|
||||
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ For best results with OpenVINO, it is recommended to convert the model
|
|||
to OpenVINO IR format. OpenVINO supports PyTorch via Model conversion
|
||||
API. To convert the PyTorch model to OpenVINO IR format we will use
|
||||
``ov.convert_model`` of `model conversion
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
The ``ov.convert_model`` Python function returns an OpenVINO Model
|
||||
object ready to load on the device and start making predictions. We can
|
||||
save it on disk for the next usage with ``ov.save_model``.
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ Convert Model to OpenVINO Intermediate Representation format
|
|||
|
||||
|
||||
`Model conversion
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
facilitates the transition between training and deployment environments,
|
||||
performs static model analysis, and adjusts deep learning models for
|
||||
optimal execution on end-point target devices.
|
||||
|
|
@ -144,14 +144,14 @@ optimal execution on end-point target devices.
|
|||
|
||||
|
||||
OpenVINO™ Runtime uses the `Infer
|
||||
Request <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_Infer_request.html>`__
|
||||
Request <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Infer_request.html>`__
|
||||
mechanism which enables running models on different devices in
|
||||
asynchronous or synchronous manners. The model graph is sent as an
|
||||
argument to the OpenVINO API and an inference request is created. The
|
||||
default inference mode is AUTO but it can be changed according to
|
||||
requirements and hardware available. You can explore the different
|
||||
inference modes and their usage `in
|
||||
documentation. <https://docs.openvino.ai/2023.0/openvino_docs_Runtime_Inference_Modes_Overview.html>`__
|
||||
documentation. <https://docs.openvino.ai/2023.3/openvino_docs_Runtime_Inference_Modes_Overview.html>`__
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
|
|||
|
|
@ -987,7 +987,7 @@ Compare performance of the Original and Quantized Models
|
|||
|
||||
Finally, use the OpenVINO
|
||||
`Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
to measure the inference performance of the ``FP32`` and ``INT8``
|
||||
models.
|
||||
|
||||
|
|
|
|||
|
|
@ -979,7 +979,7 @@ Compare performance of the Original and Quantized Models
|
|||
|
||||
Finally, use the OpenVINO
|
||||
`Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
to measure the inference performance of the ``FP32`` and ``INT8``
|
||||
models.
|
||||
|
||||
|
|
|
|||
|
|
@ -949,7 +949,7 @@ Compare performance object detection models
|
|||
|
||||
|
||||
Finally, use the OpenVINO `Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
to measure the inference performance of the ``FP32`` and ``INT8``
|
||||
models.
|
||||
|
||||
|
|
@ -1221,7 +1221,7 @@ CPU as part of an application. This will improve selected device
|
|||
utilization.
|
||||
|
||||
For more information, refer to the overview of `Preprocessing
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_OV_Runtime_UG_Preprocessing_Overview.html>`__.
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Preprocessing_Details.html.html>`__.
|
||||
|
||||
For example, we can integrate converting input data layout and
|
||||
normalization defined in ``image_to_tensor`` function.
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ Convert Models to OpenVINO IR
|
|||
|
||||
|
||||
OpenVINO supports PyTorch models using `Model Conversion
|
||||
API <https://docs.openvino.ai/2023.1/openvino_docs_model_processing_introduction.html>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
to convert the model to IR format. ``ov.convert_model`` function accepts
|
||||
PyTorch model object and example input and then converts it to
|
||||
``ov.Model`` class instance that ready to use for loading on device or
|
||||
|
|
|
|||
|
|
@ -1528,7 +1528,7 @@ Compare Performance of the Original and Quantized Models
|
|||
|
||||
Finally, use the OpenVINO
|
||||
`Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
to measure the inference performance of the ``FP32`` and ``INT8``
|
||||
models.
|
||||
|
||||
|
|
|
|||
|
|
@ -736,7 +736,7 @@ Compare performance time of the converted and optimized models
|
|||
|
||||
To measure the inference performance of OpenVINO FP16 and INT8 models,
|
||||
use `Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__.
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__.
|
||||
|
||||
**NOTE**: For more accurate performance, run ``benchmark_app`` in a
|
||||
terminal/command prompt after closing other applications. Run
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ Convert Model to OpenVINO Intermediate Representation (IR) format
|
|||
|
||||
OpenVINO supports PyTorch through Model Conversion API. You will use
|
||||
`model conversion Python
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
to convert model to IR format. The ``ov.convert_model`` function returns
|
||||
OpenVINO Model class instance ready to load on a device or save on a
|
||||
disk for next loading using ``ov.save_model``.
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@ model. The obtained model is ready to use and to be loaded on a device
|
|||
using ``compile_model`` or can be saved on a disk using the
|
||||
``ov.save_model`` function. The ``read_model`` method loads a saved
|
||||
model from a disk. For more information about model conversion, see this
|
||||
`page <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
`page <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
### Convert Prior Encoder.
|
||||
First we convert WavLM model, as a part of Convert Prior Encoder, to the
|
||||
ONNX format, then to OpenVINO’s IR format. We keep the original name of
|
||||
|
|
|
|||
|
|
@ -133,9 +133,9 @@ instance which represents this model. The obtained model is ready to use
|
|||
and to be loaded on the device using ``compile_model`` or can be saved
|
||||
on a disk using the ``ov.save_model`` function reducing loading time for
|
||||
the next running. For more information about model conversion, see this
|
||||
`page <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
`page <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
For TensorFlow Lite, refer to the `models
|
||||
support <https://docs.openvino.ai/2023.0/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow_Lite.html>`__.
|
||||
support <https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Model_From_TensorFlow_Lite.html>`__.
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ The code below preparing function for converting LLaVA model to OpenVINO
|
|||
Intermediate Representation format. It splits model on parts described
|
||||
above, prepare example inputs for each part and convert each part using
|
||||
`OpenVINO Model Conversion
|
||||
API <https://docs.openvino.ai/2023.1/openvino_docs_model_processing_introduction.html#convert-a-model-in-python-convert-model>`__.
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html#convert-a-model-in-python-convert-model>`__.
|
||||
``ov.convert_model`` function accepts PyTorch model instance and returns
|
||||
``ov.Model`` object that represent model in OpenVINO format. It is ready
|
||||
to use for loading on device using ``ov.compile_model`` or can be saved
|
||||
|
|
@ -535,7 +535,7 @@ improves performance even more, but introduces a minor drop in
|
|||
prediction quality.
|
||||
|
||||
More details about weights compression, can be found in `OpenVINO
|
||||
documentation <https://docs.openvino.ai/2023.1/weight_compression.html>`__.
|
||||
documentation <https://docs.openvino.ai/2023.3/weight_compression.html>`__.
|
||||
|
||||
**Note**: There is no speedup for INT4 compressed models on dGPU.
|
||||
|
||||
|
|
|
|||
|
|
@ -231,7 +231,7 @@ by ``Pix2StructProcessor.decode``
|
|||
|
||||
Let’s see the model in action. For testing the model, we will use a
|
||||
screenshot from `OpenVINO
|
||||
documentation <https://docs.openvino.ai/2023.1/get_started.html#openvino-advanced-features>`__
|
||||
documentation <https://docs.openvino.ai/2023.3/get_started.html#openvino-advanced-features>`__
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ Convert models to OpenVINO Intermediate representation (IR) format
|
|||
|
||||
|
||||
`Model conversion
|
||||
API <https://docs.openvino.ai/2023.2/openvino_docs_model_processing_introduction.html>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
enables direct conversion of PyTorch models backing the pipeline. We
|
||||
need to provide a model object, input data for model tracing to
|
||||
``ov.convert_model`` function to obtain OpenVINO ``ov.Model`` object
|
||||
|
|
|
|||
|
|
@ -410,11 +410,11 @@ Download Intermediate Representation (IR) model.
|
|||
ir_model = core.read_model(model_xml)
|
||||
|
||||
Use `Basic Quantization
|
||||
Flow <https://docs.openvino.ai/2023.0/basic_qauntization_flow.html#doxid-basic-qauntization-flow>`__.
|
||||
Flow <https://docs.openvino.ai/2023.3/basic_quantization_flow.html#doxid-basic-qauntization-flow>`__.
|
||||
To use the most advanced quantization flow that allows to apply 8-bit
|
||||
quantization to the model with accuracy control see `Quantizing with
|
||||
accuracy
|
||||
control <https://docs.openvino.ai/2023.0/quantization_w_accuracy_control.html#>`__.
|
||||
control <https://docs.openvino.ai/2023.3/quantization_w_accuracy_control.html#>`__.
|
||||
|
||||
.. code:: ipython3
|
||||
|
||||
|
|
@ -630,7 +630,7 @@ Compare Inference Speed
|
|||
|
||||
|
||||
Measure inference speed with the `OpenVINO Benchmark
|
||||
App <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__.
|
||||
App <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__.
|
||||
|
||||
Benchmark App is a command line tool that measures raw inference
|
||||
performance for a specified OpenVINO IR model. Run
|
||||
|
|
@ -640,7 +640,7 @@ the ``-m`` parameter with asynchronous inference on CPU, for one minute.
|
|||
Use the ``-d`` parameter to test performance on a different device, for
|
||||
example an Intel integrated Graphics (iGPU), and ``-t`` to set the
|
||||
number of seconds to run inference. See the
|
||||
`documentation <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
`documentation <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
for more information.
|
||||
|
||||
This tutorial uses a wrapper function from `Notebook
|
||||
|
|
@ -922,7 +922,7 @@ cached to the ``model_cache`` directory.
|
|||
With a recent Intel CPU, the best performance can often be achieved by
|
||||
doing inference on both the CPU and the iGPU, with OpenVINO’s `Multi
|
||||
Device
|
||||
Plugin <https://docs.openvino.ai/2023.0/openvino_docs_OV_UG_Running_on_multiple_devices.html>`__.
|
||||
Plugin <https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Running_on_multiple_devices.html>`__.
|
||||
It takes a bit longer to load a model on GPU than on CPU, so this
|
||||
benchmark will take a bit longer to complete than the CPU benchmark.
|
||||
|
||||
|
|
|
|||
|
|
@ -718,7 +718,7 @@ Benchmark Model Performance by Computing Inference Time
|
|||
|
||||
Finally, measure the inference performance of the ``FP32`` and ``INT8``
|
||||
models, using `Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
- inference performance measurement tool in OpenVINO. By default,
|
||||
Benchmark Tool runs inference for 60 seconds in asynchronous mode on
|
||||
CPU. It returns inference speed as latency (milliseconds per image) and
|
||||
|
|
|
|||
|
|
@ -447,7 +447,7 @@ Export Models to OpenVINO Intermediate Representation (IR)
|
|||
Use model conversion Python API to convert the models to OpenVINO IR.
|
||||
|
||||
For more information about model conversion, see this
|
||||
`page <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__.
|
||||
`page <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__.
|
||||
|
||||
Executing this command may take a while.
|
||||
|
||||
|
|
@ -477,7 +477,7 @@ Benchmark Model Performance by Computing Inference Time
|
|||
|
||||
Finally, measure the inference performance of the ``FP32`` and ``INT8``
|
||||
models, using `Benchmark
|
||||
Tool <https://docs.openvino.ai/2023.0/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
Tool <https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html>`__
|
||||
- an inference performance measurement tool in OpenVINO. By default,
|
||||
Benchmark Tool runs inference for 60 seconds in asynchronous mode on
|
||||
CPU. It returns inference speed as latency (milliseconds per image) and
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ Convert the Model
|
|||
|
||||
The pre-trained model is in TensorFlow format. To use it with OpenVINO,
|
||||
convert it to OpenVINO IR format, using `model conversion Python
|
||||
API <https://docs.openvino.ai/2023.0/openvino_docs_model_processing_introduction.html>`__
|
||||
API <https://docs.openvino.ai/2023.3/openvino_docs_model_processing_introduction.html>`__
|
||||
(``mo.convert_model`` function). If the model has been already
|
||||
converted, this step is skipped.
|
||||
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@ IR format.
|
|||
Conversion command: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/.venv/bin/python -- /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/.venv/bin/mo --framework=onnx --output_dir=model/public/human-pose-estimation-3d-0001/FP32 --model_name=human-pose-estimation-3d-0001 --input=data '--mean_values=data[128.0,128.0,128.0]' '--scale_values=data[255.0,255.0,255.0]' --output=features,heatmaps,pafs --input_model=model/public/human-pose-estimation-3d-0001/human-pose-estimation-3d-0001.onnx '--layout=data(NCHW)' '--input_shape=[1, 3, 256, 448]' --compress_to_fp16=False
|
||||
|
||||
[ INFO ] The model was converted to IR v11, the latest model format that corresponds to the source DL framework input/output format. While IR v11 is backwards compatible with OpenVINO Inference Engine API v1.0, please use API v2.0 (as of 2022.1) to take advantage of the latest improvements in IR v11.
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.0/openvino_2_0_transition_guide.html
|
||||
Find more information about API v2.0 and IR v11 at https://docs.openvino.ai/2023.3/openvino_2_0_transition_guide.html
|
||||
[ SUCCESS ] Generated IR version 11 model.
|
||||
[ SUCCESS ] XML file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/406-3D-pose-estimation-webcam/model/public/human-pose-estimation-3d-0001/FP32/human-pose-estimation-3d-0001.xml
|
||||
[ SUCCESS ] BIN file: /opt/home/k8sworker/ci-ai/cibuilds/ov-notebook/OVNotebookOps-561/.workspace/scm/ov-notebook/notebooks/406-3D-pose-estimation-webcam/model/public/human-pose-estimation-3d-0001/FP32/human-pose-estimation-3d-0001.bin
|
||||
|
|
|
|||
|
|
@ -185,18 +185,18 @@ Representation (OpenVINO IR).
|
|||
and post-processing.
|
||||
|
||||
In this case, `person detection
|
||||
model <https://docs.openvino.ai/2023.0/omz_models_model_person_detection_0202.html>`__
|
||||
model <https://docs.openvino.ai/2023.3/omz_models_model_person_detection_0202.html>`__
|
||||
is deployed to detect the person in each frame of the video, and
|
||||
`reidentification
|
||||
model <https://docs.openvino.ai/2023.0/omz_models_model_person_reidentification_retail_0287.html>`__
|
||||
model <https://docs.openvino.ai/2023.3/omz_models_model_person_reidentification_retail_0287.html>`__
|
||||
is used to output embedding vector to match a pair of images of a person
|
||||
by the cosine distance.
|
||||
|
||||
If you want to download another model (``person-detection-xxx`` from
|
||||
`Object Detection Models
|
||||
list <https://docs.openvino.ai/2023.0/omz_models_group_intel.html#object-detection-models>`__,
|
||||
list <https://docs.openvino.ai/2023.3/omz_models_group_intel.html#object-detection-models>`__,
|
||||
``person-reidentification-retail-xxx`` from `Reidentification Models
|
||||
list <https://docs.openvino.ai/2023.0/omz_models_group_intel.html#reidentification-models>`__),
|
||||
list <https://docs.openvino.ai/2023.3/omz_models_group_intel.html#reidentification-models>`__),
|
||||
replace the name of the model in the code below.
|
||||
|
||||
.. code:: ipython3
|
||||
|
|
|
|||
|
|
@ -125,8 +125,7 @@ def get_compound_data(compound, args, hide=True):
|
|||
title = compound.findtext("name")
|
||||
refs = []
|
||||
for ing in root.iter('innergroup'):
|
||||
if ' ' not in ing.text:
|
||||
refs.append((ing.text, ing.get('refid') + '.rst'))
|
||||
refs.append((ing.text, ing.get('refid') + '.rst'))
|
||||
for inc in root.iter('innerclass'):
|
||||
if ' ' not in inc.text:
|
||||
refs.append((inc.text, inc.get('refid') + '.rst'))
|
||||
|
|
|
|||
|
|
@ -2,18 +2,18 @@
|
|||
|
||||
This sample demonstrates how to execute an inference of image classification networks like AlexNet and GoogLeNet using Synchronous Inference Request API and input auto-resize feature.
|
||||
|
||||
For more detailed information on how this sample works, check the dedicated [article](https://docs.openvino.ai/2023.2/openvino_inference_engine_ie_bridges_c_samples_hello_classification_README.html)
|
||||
For more detailed information on how this sample works, check the dedicated [article](https://docs.openvino.ai/2023.3/openvino_inference_engine_ie_bridges_c_samples_hello_classification_README.html)
|
||||
|
||||
## Requirements
|
||||
|
||||
| Options | Values |
|
||||
| ---------------------------| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| Validated Models | [alexnet](https://docs.openvino.ai/2023.2/omz_models_model_alexnet.html), [googlenet-v1](https://docs.openvino.ai/2023.2/omz_models_model_googlenet_v1.html) |
|
||||
| Validated Models | [alexnet](https://docs.openvino.ai/2023.3/omz_models_model_alexnet.html), [googlenet-v1](https://docs.openvino.ai/2023.3/omz_models_model_googlenet_v1.html) |
|
||||
| Model Format | Inference Engine Intermediate Representation (\*.xml + \*.bin), ONNX (\*.onnx) |
|
||||
| Validated images | The sample uses OpenCV\* to [read input image](https://docs.opencv.org/master/d4/da8/group__imgcodecs.html#ga288b8b3da0892bd651fce07b3bbd3a56) (\*.bmp, \*.png) |
|
||||
| Supported devices | [All](https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_supported_plugins_Supported_Devices.html) |
|
||||
| Other language realization | [C++](https://docs.openvino.ai/2023.2/openvino_inference_engine_samples_hello_classification_README.html), |
|
||||
| | [Python](https://docs.openvino.ai/2023.2/openvino_inference_engine_ie_bridges_python_sample_hello_classification_README.html) |
|
||||
| Supported devices | [All](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_Supported_Devices.html) |
|
||||
| Other language realization | [C++](https://docs.openvino.ai/2023.3/openvino_inference_engine_samples_hello_classification_README.html), |
|
||||
| | [Python](https://docs.openvino.ai/2023.3/openvino_inference_engine_ie_bridges_python_sample_hello_classification_README.html) |
|
||||
|
||||
Hello Classification C sample application demonstrates how to use the C API from OpenVINO in applications.
|
||||
|
||||
|
|
|
|||
|
|
@ -4,17 +4,17 @@ This sample demonstrates how to execute an inference of image classification net
|
|||
|
||||
Hello NV12 Input Classification C Sample demonstrates how to use the NV12 automatic input pre-processing API in your applications.
|
||||
|
||||
For more detailed information on how this sample works, check the dedicated [article](https://docs.openvino.ai/2023.2/openvino_inference_engine_ie_bridges_c_samples_hello_nv12_input_classification_README.html)
|
||||
For more detailed information on how this sample works, check the dedicated [article](https://docs.openvino.ai/2023.3/openvino_inference_engine_ie_bridges_c_samples_hello_nv12_input_classification_README.html)
|
||||
|
||||
## Requirements
|
||||
|
||||
| Options | Values |
|
||||
| ----------------------------| ---------------------------------------------------------------------------------------------------------------------|
|
||||
| Validated Models | [alexnet](https://docs.openvino.ai/2023.2/omz_models_model_alexnet.html) |
|
||||
| Validated Models | [alexnet](https://docs.openvino.ai/2023.3/omz_models_model_alexnet.html) |
|
||||
| Model Format | Inference Engine Intermediate Representation (\*.xml + \*.bin), ONNX (\*.onnx) |
|
||||
| Validated images | An uncompressed image in the NV12 color format - \*.yuv |
|
||||
| Supported devices | [All](https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_supported_plugins_Supported_Devices.html) |
|
||||
| Other language realization | [C++](https://docs.openvino.ai/2023.2/openvino_inference_engine_samples_hello_nv12_input_classification_README.html) |
|
||||
| Supported devices | [All](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_Supported_Devices.html) |
|
||||
| Other language realization | [C++](https://docs.openvino.ai/2023.3/openvino_inference_engine_samples_hello_nv12_input_classification_README.html) |
|
||||
|
||||
The following C++ API is used in the application:
|
||||
|
||||
|
|
@ -28,6 +28,6 @@ The following C++ API is used in the application:
|
|||
| | ``ov_preprocess_preprocess_steps_convert_color`` | |
|
||||
|
||||
|
||||
Basic Inference Engine API is covered by [Hello Classification C sample](https://docs.openvino.ai/2023.2/openvino_inference_engine_ie_bridges_c_samples_hello_classification_README.html).
|
||||
Basic Inference Engine API is covered by [Hello Classification C sample](https://docs.openvino.ai/2023.3/openvino_inference_engine_ie_bridges_c_samples_hello_classification_README.html).
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
# Sync Benchmark C++ Sample
|
||||
|
||||
This sample demonstrates how to estimate performance of a model using Synchronous Inference Request API. It makes sense to use synchronous inference only in latency oriented scenarios. Models with static input shapes are supported. Unlike [demos](https://docs.openvino.ai/2023.2/omz_demos.html) this sample doesn't have other configurable command line arguments. Feel free to modify sample's source code to try out different options.
|
||||
This sample demonstrates how to estimate performance of a model using Synchronous Inference Request API. It makes sense to use synchronous inference only in latency oriented scenarios. Models with static input shapes are supported. Unlike [demos](https://docs.openvino.ai/2023.3/omz_demos.html) this sample doesn't have other configurable command line arguments. Feel free to modify sample's source code to try out different options.
|
||||
|
||||
For more detailed information on how this sample works, check the dedicated [article](https://docs.openvino.ai/2023.2/openvino_inference_engine_samples_sync_benchmark_README.html)
|
||||
For more detailed information on how this sample works, check the dedicated [article](https://docs.openvino.ai/2023.3/openvino_inference_engine_samples_sync_benchmark_README.html)
|
||||
|
||||
## Requirements
|
||||
|
||||
|
|
@ -14,8 +14,8 @@ For more detailed information on how this sample works, check the dedicated [art
|
|||
| | [face-detection-0200](https://docs.openvino.ai/nightly/omz_models_model_face_detection_0200.html) |
|
||||
| Model Format | OpenVINO™ toolkit Intermediate Representation |
|
||||
| | (\*.xml + \*.bin), ONNX (\*.onnx) |
|
||||
| Supported devices | [All](https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_supported_plugins_Supported_Devices.html) |
|
||||
| Other language realization | [Python](https://docs.openvino.ai/2023.2/openvino_inference_engine_ie_bridges_python_sample_sync_benchmark_README.html) |
|
||||
| Supported devices | [All](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_Supported_Devices.html) |
|
||||
| Other language realization | [Python](https://docs.openvino.ai/2023.3/openvino_inference_engine_ie_bridges_python_sample_sync_benchmark_README.html) |
|
||||
|
||||
The following C++ API is used in the application:
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
# Throughput Benchmark C++ Sample
|
||||
|
||||
This sample demonstrates how to estimate performance of a model using Asynchronous Inference Request API in throughput mode. Unlike [demos](https://docs.openvino.ai/2023.2/omz_demos.html) this sample doesn't have other configurable command line arguments. Feel free to modify sample's source code to try out different options.
|
||||
This sample demonstrates how to estimate performance of a model using Asynchronous Inference Request API in throughput mode. Unlike [demos](https://docs.openvino.ai/2023.3/omz_demos.html) this sample doesn't have other configurable command line arguments. Feel free to modify sample's source code to try out different options.
|
||||
|
||||
The reported results may deviate from what [benchmark_app](https://docs.openvino.ai/2023.2/openvino_inference_engine_samples_benchmark_app_README.html) reports. One example is model input precision for computer vision tasks. benchmark_app sets ``uint8``, while the sample uses default model precision which is usually ``float32``.
|
||||
The reported results may deviate from what [benchmark_app](https://docs.openvino.ai/2023.3/openvino_inference_engine_samples_benchmark_app_README.html) reports. One example is model input precision for computer vision tasks. benchmark_app sets ``uint8``, while the sample uses default model precision which is usually ``float32``.
|
||||
|
||||
For more detailed information on how this sample works, check the dedicated [article](https://docs.openvino.ai/2023.2/openvino_inference_engine_samples_throughput_benchmark_README.html)
|
||||
For more detailed information on how this sample works, check the dedicated [article](https://docs.openvino.ai/2023.3/openvino_inference_engine_samples_throughput_benchmark_README.html)
|
||||
|
||||
## Requirements
|
||||
|
||||
|
|
@ -16,8 +16,8 @@ For more detailed information on how this sample works, check the dedicated [art
|
|||
| | [face-detection-](https://docs.openvino.ai/nightly/omz_models_model_face_detection_0200.html) |
|
||||
| Model Format | OpenVINO™ toolkit Intermediate Representation |
|
||||
| | (\*.xml + \*.bin), ONNX (\*.onnx) |
|
||||
| Supported devices | [All](https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_supported_plugins_Supported_Devices.html) |
|
||||
| Other language realization | [Python](https://docs.openvino.ai/2023.2/openvino_inference_engine_ie_bridges_python_sample_throughput_benchmark_README.html) |
|
||||
| Supported devices | [All](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_supported_plugins_Supported_Devices.html) |
|
||||
| Other language realization | [Python](https://docs.openvino.ai/2023.3/openvino_inference_engine_ie_bridges_python_sample_throughput_benchmark_README.html) |
|
||||
|
||||
The following C++ API is used in the application:
|
||||
|
||||
|
|
|
|||
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
This page demonstrates how to use the Benchmark C++ Tool to estimate deep learning inference performance on supported devices.
|
||||
|
||||
> **NOTE**: This page describes usage of the C++ implementation of the Benchmark Tool. For the Python implementation, refer to the [Benchmark Python Tool](https://docs.openvino.ai/2023.2/openvino_inference_engine_tools_benchmark_tool_README.html) page. The Python version is recommended for benchmarking models that will be used in Python applications, and the C++ version is recommended for benchmarking models that will be used in C++ applications. Both tools have a similar command interface and backend.
|
||||
> **NOTE**: This page describes usage of the C++ implementation of the Benchmark Tool. For the Python implementation, refer to the [Benchmark Python Tool](https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html) page. The Python version is recommended for benchmarking models that will be used in Python applications, and the C++ version is recommended for benchmarking models that will be used in C++ applications. Both tools have a similar command interface and backend.
|
||||
|
||||
For more detailed information on how this sample works, check the dedicated [article](https://docs.openvino.ai/2023.2/openvino_inference_engine_samples_benchmark_app_README.html)
|
||||
For more detailed information on how this sample works, check the dedicated [article](https://docs.openvino.ai/2023.3/openvino_inference_engine_samples_benchmark_app_README.html)
|
||||
|
||||
## Requriements
|
||||
|
||||
To use the C++ benchmark_app, you must first build it following the [Build the Sample Applications](https://docs.openvino.ai/2023.2/openvino_docs_OV_UG_Samples_Overview.html) instructions and then set up paths and environment variables by following the [Get Ready for Running the Sample Applications](https://docs.openvino.ai/2023.2/openvino_docs_get_started_get_started_demos.html) instructions. Navigate to the directory where the benchmark_app C++ sample binary was built.
|
||||
To use the C++ benchmark_app, you must first build it following the [Build the Sample Applications](https://docs.openvino.ai/2023.3/openvino_docs_OV_UG_Samples_Overview.html) instructions and then set up paths and environment variables by following the [Get Ready for Running the Sample Applications](https://docs.openvino.ai/2023.3/openvino_docs_get_started_get_started_demos.html) instructions. Navigate to the directory where the benchmark_app C++ sample binary was built.
|
||||
|
||||
> **NOTE**: If you installed OpenVINO Runtime using PyPI or Anaconda Cloud, only the [Benchmark Python Tool](https://docs.openvino.ai/2023.2/openvino_inference_engine_tools_benchmark_tool_README.html) is available, and you should follow the usage instructions on that page instead.
|
||||
> **NOTE**: If you installed OpenVINO Runtime using PyPI or Anaconda Cloud, only the [Benchmark Python Tool](https://docs.openvino.ai/2023.3/openvino_inference_engine_tools_benchmark_tool_README.html) is available, and you should follow the usage instructions on that page instead.
|
||||
|
||||
The benchmarking application works with models in the OpenVINO IR, TensorFlow, TensorFlow Lite, PaddlePaddle, PyTorch and ONNX formats. If you need it, OpenVINO also allows you to [convert your models](https://docs.openvino.ai/2023.2/openvino_docs_MO_DG_Deep_Learning_Model_Optimizer_DevGuide.html).
|
||||
The benchmarking application works with models in the OpenVINO IR, TensorFlow, TensorFlow Lite, PaddlePaddle, PyTorch and ONNX formats. If you need it, OpenVINO also allows you to [convert your models](https://docs.openvino.ai/2023.3/openvino_docs_MO_DG_Deep_Learning_Model_Optimizer_DevGuide.html).
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue