私的AI研究会 > OpenVINO6
RaspberryPiのOpenVINO™ツールキットに「Model Optimizer(MO) モデル変換ツール」は含まれていないようなので、PC用のツールキットを試すことにする。
変換結果をRaspberri Pi 上のNCS2で使用できる(らしい)。
C:\Users\izuts>cd C:\Program Files (x86)\Intel\openvino_2021\bin\ C:\Program Files (x86)\Intel\openvino_2021\bin>dir ドライブ C のボリューム ラベルは Windows です ボリューム シリアル番号は 6EAA-24F9 です C:\Program Files (x86)\Intel\openvino_2021\bin のディレクトリ 2021/01/08 10:33 <DIR> . 2021/01/08 10:33 <DIR> .. 2020/12/09 16:34 3,991 setupvars.bat 1 個のファイル 3,991 バイト 2 個のディレクトリ 144,670,281,728 バイトの空き領域 C:\Program Files (x86)\Intel\openvino_2021\bin>setupvars.bat Python 3.8.7 [setupvars.bat] OpenVINO environment initialized
C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\inference_engine\external\MovidiusDriver
Movidius_VSC_Device.inf
C:\>cd C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\model_optimizer\install_prerequisites C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\model_optimizer\install_prerequisites>dir ドライブ C のボリューム ラベルは Windows です ボリューム シリアル番号は 6EAA-24F9 です C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\model_optimizer\install_prerequisites のディレクトリ 2021/01/08 10:33 <DIR> . 2021/01/08 10:33 <DIR> .. 2020/12/09 16:35 2,427 install_prerequisites.bat 2020/12/09 16:35 659 install_prerequisites_caffe.bat 2020/12/09 16:35 692 install_prerequisites_kaldi.bat 2020/12/09 16:35 692 install_prerequisites_mxnet.bat 2020/12/09 16:35 659 install_prerequisites_onnx.bat 2020/12/09 16:35 689 install_prerequisites_tf.bat 2020/12/09 16:35 692 install_prerequisites_tf2.bat 2020/12/09 16:35 1,321,224 protobuf-3.6.1-py3.5-win-amd64.egg 2020/12/09 16:35 1,304,449 protobuf-3.6.1-py3.6-win-amd64.egg 2020/12/09 16:35 1,304,387 protobuf-3.6.1-py3.7-win-amd64.egg 10 個のファイル 3,936,570 バイト 2 個のディレクトリ 144,666,365,952 バイトの空き領域
C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\model_optimizer\install_prerequisites>install_prerequisites.bat Python 3.8.7 ECHO は <OFF> です。 Ignoring tensorflow: markers 'python_version < "3.8"' don't match your environment Collecting tensorflow>=2.0 Downloading tensorflow-2.4.0-cp38-cp38-win_amd64.whl (370.7 MB) |████████████████████████████████| 370.7 MB 12 kB/s Collecting mxnet<=1.5.1,>=1.0.0 Downloading mxnet-1.5.0-py2.py3-none-win_amd64.whl (23.5 MB) |████████████████████████████████| 23.5 MB 6.4 MB/s Collecting networkx>=1.11 Downloading networkx-2.5-py3-none-any.whl (1.6 MB) |████████████████████████████████| 1.6 MB ... Collecting numpy<1.19.0,>=1.14.0 Downloading numpy-1.18.5-cp38-cp38-win_amd64.whl (12.8 MB) |████████████████████████████████| 12.8 MB 6.4 MB/s Collecting protobuf>=3.6.1 Downloading protobuf-3.14.0-py2.py3-none-any.whl (173 kB) |████████████████████████████████| 173 kB 6.8 MB/s Collecting onnx>=1.1.2 Downloading onnx-1.8.0-cp38-cp38-win_amd64.whl (6.9 MB) |████████████████████████████████| 6.9 MB ... Collecting test-generator==0.1.1 Downloading test_generator-0.1.1-py2.py3-none-any.whl (5.5 kB) Collecting defusedxml>=0.5.0 Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB) Collecting google-pasta~=0.2 Downloading google_pasta-0.2.0-py3-none-any.whl (57 kB) |████████████████████████████████| 57 kB 3.8 MB/s Collecting h5py~=2.10.0 Downloading h5py-2.10.0-cp38-cp38-win_amd64.whl (2.5 MB) |████████████████████████████████| 2.5 MB 6.4 MB/s Collecting flatbuffers~=1.12.0 Downloading flatbuffers-1.12-py2.py3-none-any.whl (15 kB) Collecting six~=1.15.0 Downloading six-1.15.0-py2.py3-none-any.whl (10 kB) Collecting termcolor~=1.1.0 Downloading termcolor-1.1.0.tar.gz (3.9 kB) Collecting wrapt~=1.12.1 Downloading wrapt-1.12.1.tar.gz (27 kB) Collecting absl-py~=0.10 Downloading absl_py-0.11.0-py3-none-any.whl (127 kB) |████████████████████████████████| 127 kB ... Collecting keras-preprocessing~=1.1.2 Downloading Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB) |████████████████████████████████| 42 kB 3.2 MB/s Collecting typing-extensions~=3.7.4 Downloading typing_extensions-3.7.4.3-py3-none-any.whl (22 kB) Collecting gast==0.3.3 Downloading gast-0.3.3-py2.py3-none-any.whl (9.7 kB) Collecting opt-einsum~=3.3.0 Downloading opt_einsum-3.3.0-py3-none-any.whl (65 kB) |████████████████████████████████| 65 kB 4.5 MB/s Collecting tensorflow-estimator<2.5.0,>=2.4.0rc0 Downloading tensorflow_estimator-2.4.0-py2.py3-none-any.whl (462 kB) |████████████████████████████████| 462 kB ... Collecting tensorboard~=2.4 Downloading tensorboard-2.4.0-py3-none-any.whl (10.6 MB) |████████████████████████████████| 10.6 MB 6.8 MB/s Collecting wheel~=0.35 Downloading wheel-0.36.2-py2.py3-none-any.whl (35 kB) Collecting astunparse~=1.6.3 Downloading astunparse-1.6.3-py2.py3-none-any.whl (12 kB) Collecting grpcio~=1.32.0 Downloading grpcio-1.32.0-cp38-cp38-win_amd64.whl (2.6 MB) |████████████████████████████████| 2.6 MB ... Collecting graphviz<0.9.0,>=0.8.1 Downloading graphviz-0.8.4-py2.py3-none-any.whl (16 kB) Collecting requests<2.19.0,>=2.18.4 Downloading requests-2.18.4-py2.py3-none-any.whl (88 kB) |████████████████████████████████| 88 kB 3.8 MB/s Collecting decorator>=4.3.0 Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB) Collecting tensorboard-plugin-wit>=1.6.0 Downloading tensorboard_plugin_wit-1.7.0-py3-none-any.whl (779 kB) |████████████████████████████████| 779 kB ... Collecting google-auth-oauthlib<0.5,>=0.4.1 Downloading google_auth_oauthlib-0.4.2-py2.py3-none-any.whl (18 kB) Requirement already satisfied: setuptools>=41.0.0 in c:\users\izuts\appdata\local\programs\python\python38\lib\site-packages (from tensorboard~=2.4->tensorflow>=2.0->-r ..\requirements.txt (line 2)) (49.2.1) Collecting werkzeug>=0.11.15 Downloading Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB) |████████████████████████████████| 298 kB 6.4 MB/s Collecting markdown>=2.6.8 Downloading Markdown-3.3.3-py3-none-any.whl (96 kB) |████████████████████████████████| 96 kB ... Collecting google-auth<2,>=1.6.3 Downloading google_auth-1.24.0-py2.py3-none-any.whl (114 kB) |████████████████████████████████| 114 kB 6.8 MB/s Collecting idna<2.7,>=2.5 Downloading idna-2.6-py2.py3-none-any.whl (56 kB) |████████████████████████████████| 56 kB ... Collecting urllib3<1.23,>=1.21.1 Downloading urllib3-1.22-py2.py3-none-any.whl (132 kB) |████████████████████████████████| 132 kB ... Collecting chardet<3.1.0,>=3.0.2 Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB) |████████████████████████████████| 133 kB ... Collecting certifi>=2017.4.17 Downloading certifi-2020.12.5-py2.py3-none-any.whl (147 kB) |████████████████████████████████| 147 kB ... Collecting requests-oauthlib>=0.7.0 Downloading requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB) Collecting cachetools<5.0,>=2.0.0 Downloading cachetools-4.2.0-py3-none-any.whl (12 kB) Collecting rsa<5,>=3.1.4; python_version >= "3.6" Downloading rsa-4.6-py3-none-any.whl (47 kB) |████████████████████████████████| 47 kB 2.0 MB/s Collecting pyasn1-modules>=0.2.1 Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB) |████████████████████████████████| 155 kB ... Collecting oauthlib>=3.0.0 Downloading oauthlib-3.1.0-py2.py3-none-any.whl (147 kB) |████████████████████████████████| 147 kB 6.4 MB/s Collecting pyasn1>=0.1.3 Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB) |████████████████████████████████| 77 kB 2.7 MB/s Using legacy 'setup.py install' for termcolor, since package 'wheel' is not installed. Using legacy 'setup.py install' for wrapt, since package 'wheel' is not installed. Installing collected packages: six, google-pasta, numpy, h5py, flatbuffers, termcolor, wrapt, absl-py, keras-preprocessing, typing-extensions, gast, opt-einsum, tensorflow-estimator, wheel, idna, urllib3, chardet, certifi, requests, tensorboard-plugin-wit, protobuf, oauthlib, requests-oauthlib, cachetools, pyasn1, rsa, pyasn1-modules, google-auth, google-auth-oauthlib, grpcio, werkzeug, markdown, tensorboard, astunparse, tensorflow, graphviz, mxnet, decorator, networkx, onnx, test-generator, defusedxml WARNING: The script f2py.exe is installed in 'C:\Users\izuts\AppData\Roaming\Python\Python38\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Running setup.py install for termcolor ... done Running setup.py install for wrapt ... done WARNING: The script wheel.exe is installed in 'C:\Users\izuts\AppData\Roaming\Python\Python38\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script chardetect.exe is installed in 'C:\Users\izuts\AppData\Roaming\Python\Python38\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts pyrsa-decrypt.exe, pyrsa-encrypt.exe, pyrsa-keygen.exe, pyrsa-priv2pub.exe, pyrsa-sign.exe and pyrsa-verify.exe are installed in 'C:\Users\izuts\AppData\Roaming\Python\Python38\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script google-oauthlib-tool.exe is installed in 'C:\Users\izuts\AppData\Roaming\Python\Python38\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script markdown_py.exe is installed in 'C:\Users\izuts\AppData\Roaming\Python\Python38\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script tensorboard.exe is installed in 'C:\Users\izuts\AppData\Roaming\Python\Python38\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts estimator_ckpt_converter.exe, import_pb_to_tensorboard.exe, saved_model_cli.exe, tensorboard.exe, tf_upgrade_v2.exe, tflite_convert.exe, toco.exe and toco_from_protos.exe are installed in 'C:\Users\izuts\AppData\Roaming\Python\Python38\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts backend-test-tools.exe, check-model.exe and check-node.exe are installed in 'C:\Users\izuts\AppData\Roaming\Python\Python38\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts. We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default. tensorboard 2.4.0 requires requests<3,>=2.21.0, but you'll have requests 2.18.4 which is incompatible. tensorflow 2.4.0 requires numpy~=1.19.2, but you'll have numpy 1.18.5 which is incompatible. mxnet 1.5.0 requires numpy<1.17.0,>=1.8.2, but you'll have numpy 1.18.5 which is incompatible. Successfully installed absl-py-0.11.0 astunparse-1.6.3 cachetools-4.2.0 certifi-2020.12.5 chardet-3.0.4 decorator-4.4.2 defusedxml-0.6.0 flatbuffers-1.12 gast-0.3.3 google-auth-1.24.0 google-auth-oauthlib-0.4.2 google-pasta-0.2.0 graphviz-0.8.4 grpcio-1.32.0 h5py-2.10.0 idna-2.6 keras-preprocessing-1.1.2 markdown-3.3.3 mxnet-1.5.0 networkx-2.5 numpy-1.18.5 oauthlib-3.1.0 onnx-1.8.0 opt-einsum-3.3.0 protobuf-3.14.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 requests-2.18.4 requests-oauthlib-1.3.0 rsa-4.6 six-1.15.0 tensorboard-2.4.0 tensorboard-plugin-wit-1.7.0 tensorflow-2.4.0 tensorflow-estimator-2.4.0 termcolor-1.1.0 test-generator-0.1.1 typing-extensions-3.7.4.3 urllib3-1.22 werkzeug-1.0.1 wheel-0.36.2 wrapt-1.12.1 WARNING: You are using pip version 20.2.3; however, version 20.3.3 is available. You should consider upgrading via the 'c:\users\izuts\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command. ***************************************************************************************** Warning: please expect that Model Optimizer conversion might be slow. You can boost conversion speed by installing protobuf-*.egg located in the "model-optimizer\install_prerequisites" folder or building protobuf library from sources. For more information please refer to Model Optimizer FAQ, question #80. C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\model_optimizer\install_prerequisites>
C:\Users\izuts\AppData\Roaming\Python\Python38\site-packages
C:\>cd c:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo>dir C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo>dir ドライブ C のボリューム ラベルは Windows です ボリューム シリアル番号は 6EAA-24F9 です C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo のディレクトリ 2021/01/08 10:33 <DIR> . 2021/01/08 10:33 <DIR> .. 2020/12/09 16:34 310,725 car.png 2020/12/09 16:34 1,432,032 car_1.bmp 2020/12/09 16:34 8,669 demo_benchmark_app.bat 2020/12/09 16:34 7,851 demo_security_barrier_camera.bat 2020/12/09 16:34 149 demo_security_barrier_camera.conf 2020/12/09 16:34 9,238 demo_speech_recognition.bat 2020/12/09 16:34 8,767 demo_squeezenet_download_convert_run.bat 2020/12/09 16:34 109,004 how_are_you_doing.wav 2020/12/09 16:34 5,096 README.txt 2020/12/09 16:34 21,675 squeezenet1.1.labels 10 個のファイル 1,913,206 バイト 2 個のディレクトリ 142,823,260,160 バイトの空き領域
C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo>demo_squeezenet_download_convert_run.bat : : [ INFO ] Completed 7 async request execution [ INFO ] Completed 8 async request execution [ INFO ] Completed 9 async request execution [ INFO ] Completed 10 async request execution [ INFO ] Processing output blobs Top 10 results: Image C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo\car.png classid probability label ------- ----------- ----- 817 0.6853030 sports car, sport car 479 0.1835197 car wheel 511 0.0917197 convertible 436 0.0200694 beach wagon, station wagon, wagon, estate car, beach waggon, station waggon, waggon 751 0.0069604 racer, race car, racing car 656 0.0044177 minivan 717 0.0024739 pickup, pickup truck 581 0.0017788 grille, radiator grille 468 0.0013083 cab, hack, taxi, taxicab 661 0.0007443 Model T [ INFO ] Execution successful [ INFO ] This sample is an API example, for any performance measurements please use the dedicated benchmark_app tool ###############|| Classification demo completed successfully ||############### 0 秒待っています。続行するには何かキーを押してください ... C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo>dir
C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo>demo_security_barrier_camera.bat target_precision = FP16 Python 3.8.7 [setupvars.bat] OpenVINO environment initialized INTEL_OPENVINO_DIR is set to C:\Program Files (x86)\Intel\openvino_2021.2.185 Python 3.8.7 ECHO は <OFF> です。 Requirement already satisfied: pyyaml in c:\users\izuts\appdata\roaming\python\python38\site-packages (from -r C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo\..\open_model_zoo\tools\downloader\requirements.in (line 1)) (5.3.1) Requirement already satisfied: requests in c:\users\izuts\appdata\roaming\python\python38\site-packages (from -r C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (2.18.4) Requirement already satisfied: certifi>=2017.4.17 in c:\users\izuts\appdata\roaming\python\python38\site-packages (from requests->-r C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (2020.12.5) Requirement already satisfied: idna<2.7,>=2.5 in c:\users\izuts\appdata\roaming\python\python38\site-packages (from requests->-r C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (2.6) Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\users\izuts\appdata\roaming\python\python38\site-packages (from requests->-r C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (1.22) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\izuts\appdata\roaming\python\python38\site-packages (from requests->-r C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo\..\open_model_zoo\tools\downloader\requirements.in (line 2)) (3.0.4) WARNING: You are using pip version 20.2.3; however, version 20.3.3 is available. You should consider upgrading via the 'c:\users\izuts\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command. python "C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\open_model_zoo\tools\downloader\downloader.py" --name "vehicle-license-plate-detection-barrier-0106" --output_dir "C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir" --cache_dir "C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\cache" ################|| Downloading vehicle-license-plate-detection-barrier-0106 ||################ ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-license-plate-detection-barrier-0106\FP32\vehicle-license-plate-detection-barrier-0106.xml ... 100%, 207 KB, 324 KB/s, 0 seconds passed ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-license-plate-detection-barrier-0106\FP32\vehicle-license-plate-detection-barrier-0106.bin ... 100%, 2513 KB, 3739 KB/s, 0 seconds passed ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-license-plate-detection-barrier-0106\FP16\vehicle-license-plate-detection-barrier-0106.xml ... 100%, 207 KB, 316 KB/s, 0 seconds passed ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-license-plate-detection-barrier-0106\FP16\vehicle-license-plate-detection-barrier-0106.bin ... 100%, 1256 KB, 2977 KB/s, 0 seconds passed ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-license-plate-detection-barrier-0106\FP16-INT8\vehicle-license-plate-detection-barrier-0106.xml ... 100%, 546 KB, 17078 KB/s, 0 seconds passed ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-license-plate-detection-barrier-0106\FP16-INT8\vehicle-license-plate-detection-barrier-0106.bin ... 100%, 677 KB, 638 KB/s, 1 seconds passed python "C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\open_model_zoo\tools\downloader\downloader.py" --name "license-plate-recognition-barrier-0001" --output_dir "C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir" --cache_dir "C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\cache" ################|| Downloading license-plate-recognition-barrier-0001 ||################ ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\license-plate-recognition-barrier-0001\FP32\license-plate-recognition-barrier-0001.xml ... 100%, 49 KB, 118 KB/s, 0 seconds passed ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\license-plate-recognition-barrier-0001\FP32\license-plate-recognition-barrier-0001.bin ... 100%, 4757 KB, 2436 KB/s, 1 seconds passed ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\license-plate-recognition-barrier-0001\FP16\license-plate-recognition-barrier-0001.xml ... 100%, 49 KB, 117 KB/s, 0 seconds passed ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\license-plate-recognition-barrier-0001\FP16\license-plate-recognition-barrier-0001.bin ... 100%, 2378 KB, 1585 KB/s, 1 seconds passed ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\license-plate-recognition-barrier-0001\FP16-INT8\license-plate-recognition-barrier-0001.xml ... 100%, 115 KB, 264 KB/s, 0 seconds passed ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\license-plate-recognition-barrier-0001\FP16-INT8\license-plate-recognition-barrier-0001.bin ... 100%, 1993 KB, 2277 KB/s, 0 seconds passed python "C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\open_model_zoo\tools\downloader\downloader.py" --name "vehicle-attributes-recognition-barrier-0039" --output_dir "C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir" --cache_dir "C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\cache" ################|| Downloading vehicle-attributes-recognition-barrier-0039 ||################ ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-attributes-recognition-barrier-0039\FP32\vehicle-attributes-recognition-barrier-0039.xml ... 100%, 36 KB, 156 KB/s, 0 seconds passed ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-attributes-recognition-barrier-0039\FP32\vehicle-attributes-recognition-barrier-0039.bin ... 100%, 2445 KB, 1596 KB/s, 1 seconds passed ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-attributes-recognition-barrier-0039\FP16\vehicle-attributes-recognition-barrier-0039.xml ... 100%, 36 KB, 157 KB/s, 0 seconds passed ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-attributes-recognition-barrier-0039\FP16\vehicle-attributes-recognition-barrier-0039.bin ... 100%, 1222 KB, 942 KB/s, 1 seconds passed ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-attributes-recognition-barrier-0039\FP16-INT8\vehicle-attributes-recognition-barrier-0039.xml ... 100%, 99 KB, 235 KB/s, 0 seconds passed ========== Downloading C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-attributes-recognition-barrier-0039\FP16-INT8\vehicle-attributes-recognition-barrier-0039.bin ... 100%, 616 KB, 41089 KB/s, 0 seconds passed ###############|| Generate VS solution for Inference Engine demos using cmake ||############### 0 秒待っています。続行するには何かキーを押してください ... Creating Visual Studio 16 2019 x64 files in C:\Users\izuts\Documents\Intel\OpenVINO\inference_engine_demos_build... -- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042. -- The C compiler identification is MSVC 19.28.29335.0 -- The CXX compiler identification is MSVC 19.28.29335.0 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check size of __int32 -- Check size of __int32 - done -- Found InferenceEngine: C:/Program Files (x86)/Intel/openvino_2021.2.185/deployment_tools/inference_engine/lib/intel64/Release/inference_engine.lib (Required is at least version "2.0") -- Found OpenCV: C:/Program Files (x86)/Intel/openvino_2021.2.185/opencv (found version "4.5.1") found components: core imgcodecs videoio -- Found OpenCV: C:/Program Files (x86)/Intel/openvino_2021.2.185/opencv (found version "4.5.1") found components: core imgproc -- Looking for pthread.h -- Looking for pthread.h - not found -- Found Threads: TRUE -- Configuring done -- Generating done -- Build files have been written to: C:/Users/izuts/Documents/Intel/OpenVINO/inference_engine_demos_build 0 秒待っています。続行するには何かキーを押してください ... ###############|| Build Inference Engine demos using MS Visual Studio (MSBuild.exe) ||############### 0 秒待っています。続行するには何かキーを押してください ... "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" Demos.sln /p:Configuration=Release /t:security_barrier_camera_demo /clp:ErrorsOnly /m.NET Framework 向け Microsoft (R) Build Engine バージョン 16.8.2+25e4d540b Copyright (C) Microsoft Corporation.All rights reserved. 0 秒待っています。続行するには何かキーを押してください ... ###############|| Run Inference Engine security barrier camera demo ||############### 0 秒待っています。続行するには何かキーを押してください ... 'else' は、内部コマンドまたは外部コマンド、操作可能なプログラムまたはバッチ ファイルとして認識されていません。 "C:\Users\izuts\Documents\Intel\OpenVINO\inference_engine_demos_build\intel64\Release\security_barrier_camera_demo.exe" -i "C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo\car_1.bmp" -m "C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-license-plate-detection-barrier-0106\FP16\vehicle-license-plate-detection-barrier-0106.xml" -m_lpr "C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\license-plate-recognition-barrier-0001\FP16\license-plate-recognition-barrier-0001.xml" -m_va "C:\Users\izuts\Documents\Intel\OpenVINO\openvino_models\ir\intel\vehicle-attributes-recognition-barrier-0039\FP16\vehicle-attributes-recognition-barrier-0039.xml" -d CPU -d_va CPU -d_lpr CPU [ INFO ] InferenceEngine: API version ......... 2.1 Build ........... 2021.2.0-1877-176bdf51370-releases/2021/2 [ INFO ] Files were added: 1 [ INFO ] C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo\car_1.bmp [ INFO ] Loading device CPU [ INFO ] CPU MKLDNNPlugin version ......... 2.1 Build ........... 2021.2.0-1877-176bdf51370-releases/2021/2 [ INFO ] Loading detection model to the CPU plugin [ INFO ] Loading Vehicle Attribs model to the CPU plugin [ INFO ] Loading Licence Plate Recognition (LPR) model to the CPU plugin [ INFO ] Number of InferRequests: 1 (detection), 3 (classification), 3 (recognition) [ INFO ] 4 streams for CPU [ INFO ] Display resolution: 1920x1080 [ INFO ] Number of allocated frames: 3 [ INFO ] Resizable input with support of ROI crop and auto resize is disabled 0.1FPS for (2 / 1) frames Detection InferRequests usage: 0.0% [ INFO ] Execution successful ###############|| Demo completed successfully ||############### C:\Program Files (x86)\Intel\openvino_2021.2.185\deployment_tools\demo>
サンプルプログラムは2つのフォルダに分けてインストールされているのでそれぞれビルドをおこなう。
C:\Users\izuts\Documents\Intel\OpenVINO\inference_engine_demos_build\Demos.sln
C:\Users\izuts\Documents\Intel\OpenVINO\inference_engine_demos_build\intel64\Release>dir ドライブ C のボリューム ラベルは Windows です ボリューム シリアル番号は 6EAA-24F9 です C:\Users\izuts\Documents\Intel\OpenVINO\inference_engine_demos_build\intel64\Release のディレクトリ 2021/01/09 10:20 <DIR> . 2021/01/09 10:20 <DIR> .. 2021/01/09 10:19 256,000 classification_demo.exe 2021/01/08 11:37 524,940 common.lib 2021/01/09 10:19 280,576 crossroad_camera_demo.exe 2021/01/09 10:20 280,064 gaze_estimation_demo.exe 2021/01/08 11:37 698,196 gflags_nothreads_static.lib 2021/01/09 10:19 256,512 human_pose_estimation_demo.exe 2021/01/09 10:19 327,680 interactive_face_detection_demo.exe 2021/01/09 10:19 179,712 mask_rcnn_demo.exe 2021/01/09 10:19 1,623,588 models.lib 2021/01/08 11:37 424,034 monitors.lib 2021/01/09 10:19 1,417,176 multi_channel_common.lib 2021/01/09 10:19 283,136 multi_channel_face_detection_demo.exe 2021/01/09 10:20 313,344 multi_channel_human_pose_estimation_demo.exe 2021/01/09 10:20 296,448 multi_channel_object_detection_demo_yolov3.exe 2021/01/09 10:20 320,000 object_detection_demo.exe 2021/01/09 10:20 382,464 pedestrian_tracker_demo.exe 2021/01/09 10:20 924,326 pipelines.lib 2021/01/08 11:37 358,400 security_barrier_camera_demo.exe 2021/01/09 10:19 223,744 segmentation_demo.exe 2021/01/09 10:20 280,064 segmentation_demo_async.exe 2021/01/09 10:20 423,936 smart_classroom_demo.exe 2021/01/09 10:20 172,032 super_resolution_demo.exe 2021/01/09 10:20 267,264 text_detection_demo.exe 23 個のファイル 10,513,636 バイト 2 個のディレクトリ 141,464,526,848 バイトの空き領域
C:\Users\izuts\Documents\Intel\OpenVINO\inference_engine_samples_build\Samples.sln
C:\Users\izuts\Documents\Intel\OpenVINO\inference_engine_samples_build\intel64\Release のディレクトリ 2021/01/09 08:04 <DIR> . 2021/01/09 08:04 <DIR> .. 2021/01/09 08:04 338,432 benchmark_app.exe 2021/01/08 11:14 213,504 classification_sample_async.exe 2021/01/08 11:14 38,912 format_reader.dll 2021/01/08 11:14 867 format_reader.exp 2021/01/08 11:14 1,902 format_reader.lib 2021/01/08 11:14 698,222 gflags_nothreads_static.lib 2021/01/09 08:04 107,008 hello_classification.exe 2021/01/09 08:04 133,632 hello_nv12_input_classification.exe 2021/01/09 08:04 35,328 hello_query_device.exe 2021/01/09 08:04 248,832 ngraph_function_creation_sample.exe 2021/01/09 08:04 190,976 object_detection_sample_ssd.exe 2021/01/09 08:04 217,600 speech_sample.exe 2021/01/09 08:04 178,176 style_transfer_sample.exe 13 個のファイル 2,403,391 バイト 2 個のディレクトリ 142,286,974,976 バイトの空き領域
DeepLearningのデモを動かすためにはトレーニング済みのモデルが必要。OpenVINO™ をインストールしたときにダウンローダが入っているのでそれを使用する。
c:\>python C:\Program Files (x86)\Intel\openvino_2021\deployment_tools\tools\model_downloader\downloader.py --all : : ========== Downloading C:\public\yolo-v4-tf\keras-YOLOv3-model-set\yolo4\models\layers.py ... 100%, 14 KB, ? KB/s, 0 seconds passed ========== Downloading C:\public\yolo-v4-tf\keras-YOLOv3-model-set\cfg\yolov4.cfg ... 100%, 11 KB, 745 KB/s, 0 seconds passed ========== Replacing text in C:\public\yolo-v4-tf\keras-YOLOv3-model-set\common\utils.py ========== Replacing text in C:\public\yolo-v4-tf\keras-YOLOv3-model-set\common\utils.py ========== Replacing text in C:\public\yolo-v4-tf\keras-YOLOv3-model-set\tools\model_converter\keras_to_tensorflow.py ========== Replacing text in C:\public\yolo-v4-tf\keras-YOLOv3-model-set\tools\model_converter\keras_to_tensorflow.py ========== Replacing text in C:\public\yolo-v4-tf\keras-YOLOv3-model-set\yolo4\models\layers.py
2021/01/09 08:42 <DIR> Intel 2021/01/09 09:23 <DIR> public