Skip to content

How to prepare models

Aleksandr Voron edited this page Nov 29, 2021 · 1 revision

Open Model Zoo tools are needed to download models and convert them into IR representation. Convinient way to install Open Model Zoo tools is to install Python package openvino_dev.

  1. This package is not supported on ARM, so it's needed to install it on x86 platform. The commands below are for Linux. Windows and MacOS commands could be found on PyPi page.
python3 -m venv openvino_env
source openvino_env/bin/activate
python -m pip install --upgrade pip
pip install openvino-dev[tensorflow2]
  1. Download and convert needed model. All available OMZ models could be printed by the command omz_downloader --print_all. Let's prepare the model yolo-v3-tiny-tf:
omz_downloader --name yolo-v3-tiny-tf --precisions FP32
omz_converter --name yolo-v3-tiny-tf --precisions FP32
  1. Copy generated yolo-v3-tiny-tf.xml and yolo-v3-tiny-tf.bin to ARM platform for inference.