From 2f46890444dd8b8e98ee4844f83123b5b14b0708 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Tue, 22 Mar 2022 14:52:03 +0300 Subject: [PATCH] Removed obsolete scri[ts (#11107) --- samples/scripts/README.txt | 64 -- samples/scripts/car.png | 3 - samples/scripts/car_1.bmp | 3 - samples/scripts/run_sample_benchmark_app.bat | 214 ---- samples/scripts/run_sample_benchmark_app.sh | 192 ---- samples/scripts/run_sample_squeezenet.bat | 212 ---- samples/scripts/run_sample_squeezenet.sh | 189 ---- samples/scripts/squeezenet1.1.labels | 1000 ------------------ samples/scripts/utils.sh | 21 - 9 files changed, 1898 deletions(-) delete mode 100644 samples/scripts/README.txt delete mode 100644 samples/scripts/car.png delete mode 100644 samples/scripts/car_1.bmp delete mode 100644 samples/scripts/run_sample_benchmark_app.bat delete mode 100755 samples/scripts/run_sample_benchmark_app.sh delete mode 100644 samples/scripts/run_sample_squeezenet.bat delete mode 100755 samples/scripts/run_sample_squeezenet.sh delete mode 100644 samples/scripts/squeezenet1.1.labels delete mode 100644 samples/scripts/utils.sh diff --git a/samples/scripts/README.txt b/samples/scripts/README.txt deleted file mode 100644 index a013aad62cc..00000000000 --- a/samples/scripts/README.txt +++ /dev/null @@ -1,64 +0,0 @@ -===================================================== -Scripts to build and run OpenVINO samples -===================================================== - -These scripts simplify process of build samples, download and convert models and run samples to perform inference. They can used to quick validation of OpenVINO installation and proper environment initialization. - -Setting Up -================ -If you are behind a proxy, set the following environment variables in the console session: - -On Linux* and Mac OS: -export http_proxy=http://: -export https_proxy=https://: - -On Windows* OS: -set http_proxy=http://: -set https_proxy=https://: - -Running Samples -============= - -The "demo" folder contains two scripts: - -1. Classification sample using public SqueezeNet topology (run_sample_squeezenet.sh|bat) - -2. Benchmark sample using public SqueezeNet topology (run_sample_benchmark_app.sh|bat) - -To run the samples, invoke run_sample_squeezenet.sh or run_sample_benchmark_app.sh (*.bat on Windows) scripts from the console without parameters, for example: - -./run_sample_squeezenet.sh - -The script allows to specify the target device to infer on using -d option. - -Classification Sample Using SqueezeNet -==================================== - -The sample illustrates the general workflow of using the Intel(R) Deep Learning Deployment Toolkit and performs the following: - - - Downloads a public SqueezeNet model using the Model Downloader (extras\open_model_zoo\tools\downloader\downloader.py) - - Installs all prerequisites required for running the Model Optimizer using the scripts from the "tools\model_optimizer\install_prerequisites" folder - - Converts SqueezeNet to an IR using the Model Optimizer (tools\model_optimizer\mo.py) via the Model Converter (extras\open_model_zoo\tools\downloader\converter.py) - - Builds the Inference Engine classification_sample (samples\cpp\classification_sample) - - Runs the sample with the car.png picture located in the demo folder - -The sample application prints top-10 inference results for the picture. - -For more information about the Inference Engine classification sample, refer to the documentation available in the sample folder. - -Benchmark Sample Using SqueezeNet -=============================== - -The sample illustrates how to use the Benchmark Application to estimate deep learning inference performance on supported devices. - -The sample script does the following: - - - Downloads a public SqueezeNet model using the Model Downloader (extras\open_model_zoo\tools\downloader\downloader.py) - - Installs all prerequisites required for running the Model Optimizer using the scripts from the "tools\model_optimizer\install_prerequisites" folder - - Converts SqueezeNet to an IR using the Model Optimizer (tools\model_optimizer\mo.py) via the Model Converter (extras\open_model_zoo\tools\downloader\converter.py) - - Builds the Inference Engine benchmark tool (samples\benchmark_app) - - Runs the tool with the car.png picture located in the demo folder - -The benchmark app prints performance counters, resulting latency, and throughput values. - -For more information about the Inference Engine benchmark app, refer to the documentation available in the sample folder. diff --git a/samples/scripts/car.png b/samples/scripts/car.png deleted file mode 100644 index bdceaccab7f..00000000000 --- a/samples/scripts/car.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d8c498d351a7f537bf8e21e4b95a8c89b22eec552cdcfa1d3ecbe0fd8f0f66ab -size 310725 diff --git a/samples/scripts/car_1.bmp b/samples/scripts/car_1.bmp deleted file mode 100644 index ffdb8bf2ec3..00000000000 --- a/samples/scripts/car_1.bmp +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:373dc00a415557108a5d3c9ee5050f757a9d8bd97676c7fca4adcc54f1cee2b3 -size 1432032 diff --git a/samples/scripts/run_sample_benchmark_app.bat b/samples/scripts/run_sample_benchmark_app.bat deleted file mode 100644 index e92737076be..00000000000 --- a/samples/scripts/run_sample_benchmark_app.bat +++ /dev/null @@ -1,214 +0,0 @@ -:: Copyright (C) 2018-2022 Intel Corporation -:: SPDX-License-Identifier: Apache-2.0 - -@echo off -setlocal enabledelayedexpansion - -set ROOT_DIR=%~dp0 - -set TARGET=CPU -set BUILD_FOLDER=%USERPROFILE%\Documents\Intel\OpenVINO - -:: command line arguments parsing -:input_arguments_loop -if not "%1"=="" ( - if "%1"=="-b" ( - set BUILD_FOLDER=%2 - shift - ) - if "%1"=="-d" ( - set TARGET=%2 - echo target = !TARGET! - shift - ) - if "%1"=="-sample-options" ( - set SAMPLE_OPTIONS=%2 %3 %4 %5 %6 - echo sample_options = !SAMPLE_OPTIONS! - shift - ) - if "%1"=="-help" ( - echo Benchmark sample using public SqueezeNet topology - echo. - echo Options: - echo -help Print help message - echo -b BUILD_FOLDER Specify the sample build directory - echo -d DEVICE Specify the target device to infer on; CPU, GPU, HDDL or MYRIAD are acceptable. Sample will look for a suitable plugin for device specified - echo -sample-options OPTIONS Specify command line arguments for the sample - exit /b - ) - shift - goto :input_arguments_loop -) - -set "SOLUTION_DIR64=%BUILD_FOLDER%\inference_engine_cpp_samples_build" - -IF "%SAMPLE_OPTIONS%"=="" ( - set SAMPLE_OPTIONS=-niter 1000 -) - -set TARGET_PRECISION=FP16 - -echo target_precision = !TARGET_PRECISION! - -set models_path=%BUILD_FOLDER%\openvino_models\models -set models_cache=%BUILD_FOLDER%\openvino_models\cache -set irs_path=%BUILD_FOLDER%\openvino_models\ir - -set model_name=squeezenet1.1 - -set target_image_path=%ROOT_DIR%car.png - -set omz_tool_error_message=It is required to download and convert a model. Check https://pypi.org/project/openvino-dev/ to install it. Then run the script again. - -if exist "%ROOT_DIR%..\..\setupvars.bat" ( - call "%ROOT_DIR%..\..\setupvars.bat" -) else ( - echo setupvars.bat is not found, INTEL_OPENVINO_DIR can't be set - goto error -) - -echo INTEL_OPENVINO_DIR is set to %INTEL_OPENVINO_DIR% - -:: Check if Python is installed -python --version 2>NUL -if errorlevel 1 ( - echo Error^: Python is not installed. Please install Python 3.6 ^(64-bit^) or higher from https://www.python.org/downloads/ - goto error -) - -:: Check if Python version is equal or higher 3.4 -for /F "tokens=* USEBACKQ" %%F IN (`python --version 2^>^&1`) DO ( - set version=%%F -) -echo %var% - -for /F "tokens=1,2,3 delims=. " %%a in ("%version%") do ( - set Major=%%b - set Minor=%%c -) - -if "%Major%" geq "3" ( - if "%Minor%" geq "6" ( - set python_ver=okay - ) -) - -if not "%python_ver%"=="okay" ( - echo Unsupported Python version. Please install Python 3.6 ^(64-bit^) or higher from https://www.python.org/downloads/ - goto error -) - -omz_info_dumper --print_all >NUL -if errorlevel 1 ( - echo Error: omz_info_dumper was not found. %omz_tool_error_message% - goto error -) - -omz_downloader --print_all >NUL -if errorlevel 1 ( - echo Error: omz_downloader was not found. %omz_tool_error_message% - goto error -) - -omz_converter --print_all >NUL -if errorlevel 1 ( - echo Error: omz_converter was not found. %omz_tool_error_message% - goto error -) - -for /F "tokens=* usebackq" %%d in ( - `omz_info_dumper --name "%model_name%" ^| - python -c "import sys, json; print(json.load(sys.stdin)[0]['subdirectory'])"` -) do ( - set model_dir=%%d -) - -set ir_dir=%irs_path%\%model_dir%\%target_precision% - -echo. -echo Download public %model_name% model -echo omz_downloader --name "%model_name%" --output_dir "%models_path%" --cache_dir "%models_cache%" -omz_downloader --name "%model_name%" --output_dir "%models_path%" --cache_dir "%models_cache%" -echo %model_name% model downloading completed - -CALL :delay 7 - -if exist "%ir_dir%" ( - echo. - echo Target folder %ir_dir% already exists. Skipping IR generation with Model Optimizer. - echo If you want to convert a model again, remove the entire %ir_dir% folder. - CALL :delay 7 - GOTO buildSample -) - -echo. -echo ###############^|^| Run Model Optimizer ^|^|############### -echo. -CALL :delay 3 - -::set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp -echo omz_converter --mo "%INTEL_OPENVINO_DIR%\tools\model_optimizer\mo.py" --name "%model_name%" -d "%models_path%" -o "%irs_path%" --precisions "%TARGET_PRECISION%" -omz_converter --mo "%INTEL_OPENVINO_DIR%\tools\model_optimizer\mo.py" --name "%model_name%" -d "%models_path%" -o "%irs_path%" --precisions "%TARGET_PRECISION%" -if ERRORLEVEL 1 GOTO errorHandling - -CALL :delay 7 - -:buildSample -echo. -echo ###############^|^| Generate VS solution for Inference Engine samples using cmake ^|^|############### -echo. -CALL :delay 3 - -if "%PROCESSOR_ARCHITECTURE%" == "AMD64" ( - set "PLATFORM=x64" -) else ( - set "PLATFORM=Win32" -) - -if exist "%SOLUTION_DIR64%\CMakeCache.txt" del "%SOLUTION_DIR64%\CMakeCache.txt" - -cd /d "%INTEL_OPENVINO_DIR%\samples\cpp" && cmake -E make_directory "%SOLUTION_DIR64%" && cd /d "%SOLUTION_DIR64%" && cmake -G "Visual Studio 16 2019" -A %PLATFORM% "%INTEL_OPENVINO_DIR%\samples\cpp" -if ERRORLEVEL 1 GOTO errorHandling - -CALL :delay 7 - -echo. -echo ###############^|^| Build Inference Engine samples using cmake ^|^|############### -echo. - -CALL :delay 3 - -echo cmake --build . --config Release --target benchmark_app -cmake --build . --config Release --target benchmark_app -if ERRORLEVEL 1 GOTO errorHandling - -CALL :delay 7 - -:runSample -echo. -echo ###############^|^| Run Inference Engine benchmark app ^|^|############### -echo. -CALL :delay 3 -copy /Y "%ROOT_DIR%%model_name%.labels" "%ir_dir%" -cd /d "%SOLUTION_DIR64%\intel64\Release" - -echo benchmark_app.exe -i "%target_image_path%" -m "%ir_dir%\%model_name%.xml" -pc -d !TARGET! !SAMPLE_OPTIONS! -benchmark_app.exe -i "%target_image_path%" -m "%ir_dir%\%model_name%.xml" -pc -d !TARGET! !SAMPLE_OPTIONS! - -if ERRORLEVEL 1 GOTO errorHandling - -echo. -echo ###############^|^| Inference Engine benchmark app completed successfully ^|^|############### - -CALL :delay 10 -cd /d "%ROOT_DIR%" - -goto :eof - -:errorHandling -echo Error -cd /d "%ROOT_DIR%" - -:delay -timeout %~1 2> nul -EXIT /B 0 diff --git a/samples/scripts/run_sample_benchmark_app.sh b/samples/scripts/run_sample_benchmark_app.sh deleted file mode 100755 index 65f9b7154e3..00000000000 --- a/samples/scripts/run_sample_benchmark_app.sh +++ /dev/null @@ -1,192 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (C) 2018-2022 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -echo -ne "\e[0;33mWARNING: If you get an error when running the sample in the Docker container, you may need to install additional packages. To do this, run the container as root (-u 0) and run install_openvino_dependencies.sh script. If you get a package-independent error, try setting additional parameters using -sample-options.\e[0m\n" - -ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]-$0}" )" && pwd )" -build_dir="$HOME/inference_engine_cpp_samples_build" - -. "$ROOT_DIR/utils.sh" - -usage() { - echo "Benchmark demo using public SqueezeNet topology" - echo - echo "Options:" - echo " -help Print help message" - echo " -b BUILD_DIR Specify the sample build directory" - echo " -d DEVICE Specify the target device to infer on; CPU, GPU, HDDL or MYRIAD are acceptable. Sample will look for a suitable plugin for device specified" - echo " -sample-options OPTIONS Specify command line arguments for the sample" - echo - exit 1 -} - -trap 'error ${LINENO}' ERR - -target="CPU" - -# parse command line options -while [[ $# -gt 0 ]] -do -key="$1" - -case $key in - -b | --build_dir) - build_dir="$2/inference_engine_cpp_samples_build" - shift - ;; - -h | -help | --help) - usage - ;; - -d) - target="$2" - echo target = "${target}" - shift - ;; - -sample-options) - sampleoptions=("${@:2}") - echo sample-options = "${sampleoptions[*]}" - shift - ;; - *) - # unknown option - ;; -esac -shift -done - -if [ -z "${sampleoptions[*]}" ]; then - sampleoptions=( -niter 1000 ) -fi - -target_precision="FP16" - -echo -ne "target_precision = ${target_precision}\n" - -models_path="$build_dir/../openvino_models/models" -models_cache="$build_dir/../openvino_models/cache" -irs_path="$build_dir/../openvino_models/ir" - -model_name="squeezenet1.1" - -target_image_path="$ROOT_DIR/car.png" - -run_again="Then run the script again.\n\n" -omz_tool_error_message="It is required to download and convert a model. Check https://pypi.org/project/openvino-dev/ to install it. ${run_again}" - -if [ -e "$ROOT_DIR/../../setupvars.sh" ]; then - setupvars_path="$ROOT_DIR/../../setupvars.sh" -else - echo -ne "Error: setupvars.sh is not found\n" -fi - -if ! . "$setupvars_path" ; then - echo -ne "Unable to run ./setupvars.sh. Please check its presence. ${run_again}" - exit 1 -fi - -if [[ -f /etc/centos-release ]]; then - DISTRO="centos" -elif [[ -f /etc/lsb-release ]]; then - DISTRO="ubuntu" -elif [[ -f /etc/redhat-release ]]; then - DISTRO="redhat" -fi - -if [[ $DISTRO == "centos" ]]; then - # check installed Python version - if command -v python3.6 >/dev/null 2>&1; then - python_binary=python3.6 - fi -elif [[ $DISTRO == "redhat" ]]; then - python_binary=python3 -elif [[ $DISTRO == "ubuntu" ]]; then - python_binary=python3 -elif [[ "$OSTYPE" == "darwin"* ]]; then - # check installed Python version - if command -v python3.8 >/dev/null 2>&1; then - python_binary=python3.8 - elif command -v python3.7 >/dev/null 2>&1; then - python_binary=python3.7 - elif command -v python3.6 >/dev/null 2>&1; then - python_binary=python3.6 - else - python_binary=python3 - fi -fi - -if ! command -v $python_binary &>/dev/null; then - echo -ne "\n\nPython 3.6 (x64) or higher is not installed. It is required to run Model Optimizer, please install it. ${run_again}" - exit 1 -fi - -if ! command -v omz_info_dumper &>/dev/null; then - echo -ne "\n\nomz_info_dumper was not found. ${omz_tool_error_message}" - exit 2 -fi - -if ! command -v omz_downloader &>/dev/null; then - echo -ne "\n\nomz_downloader was not found. ${omz_tool_error_message}" - exit 3 -fi - -if ! command -v omz_converter &>/dev/null; then - echo -ne "\n\nomz_converter was not found. ${omz_tool_error_message}" - exit 4 -fi - -# Step 1. Download the Caffe model and the prototxt of the model -echo -ne "\n###############|| Downloading the Caffe model and the prototxt ||###############\n\n" - -model_dir=$(omz_info_dumper --name "$model_name" | - ${python_binary} -c 'import sys, json; print(json.load(sys.stdin)[0]["subdirectory"])') - -print_and_run omz_downloader --name "$model_name" --output_dir "${models_path}" --cache_dir "${models_cache}" - -ir_dir="${irs_path}/${model_dir}/${target_precision}" - -if [ ! -e "$ir_dir" ]; then - # Step 2. Convert a model with Model Optimizer - echo -ne "\n###############|| Convert a model with Model Optimizer ||###############\n\n" - - export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp - print_and_run omz_converter --name "$model_name" -d "$models_path" -o "$irs_path" --precisions "$target_precision" -else - echo -ne "\n\nTarget folder ${ir_dir} already exists. Skipping IR generation with Model Optimizer." - echo -ne "If you want to convert a model again, remove the entire ${ir_dir} folder. ${run_again}" -fi - -# Step 3. Build samples -echo -ne "\n###############|| Build Inference Engine samples ||###############\n\n" - -OS_PATH=$(uname -m) -NUM_THREADS="-j2" - -if [ "$OS_PATH" == "x86_64" ]; then - OS_PATH="intel64" - NUM_THREADS="-j8" -fi - -samples_path="${INTEL_OPENVINO_DIR}/samples/cpp" -binaries_dir="${build_dir}/${OS_PATH}/Release" - -if [ -e "$build_dir/CMakeCache.txt" ]; then - rm -rf "$build_dir/CMakeCache.txt" -fi -mkdir -p "$build_dir" -cd "$build_dir" -cmake -DCMAKE_BUILD_TYPE=Release "$samples_path" - -make $NUM_THREADS benchmark_app - -# Step 4. Run samples -echo -ne "\n###############|| Run Inference Engine benchmark app ||###############\n\n" - -cd "$binaries_dir" - -cp -f "$ROOT_DIR/${model_name}.labels" "${ir_dir}/" - -print_and_run ./benchmark_app -d "$target" -i "$target_image_path" -m "${ir_dir}/${model_name}.xml" -pc "${sampleoptions[@]}" - -echo -ne "\n###############|| Inference Engine benchmark app completed successfully ||###############\n\n" diff --git a/samples/scripts/run_sample_squeezenet.bat b/samples/scripts/run_sample_squeezenet.bat deleted file mode 100644 index 034d300feb3..00000000000 --- a/samples/scripts/run_sample_squeezenet.bat +++ /dev/null @@ -1,212 +0,0 @@ -:: Copyright (C) 2018-2022 Intel Corporation -:: SPDX-License-Identifier: Apache-2.0 - -@echo off -setlocal enabledelayedexpansion - -set ROOT_DIR=%~dp0 - -set TARGET=CPU -set BUILD_FOLDER=%USERPROFILE%\Documents\Intel\OpenVINO - -:: command line arguments parsing -:input_arguments_loop -if not "%1"=="" ( - if "%1"=="-b" ( - set BUILD_FOLDER=%2 - shift - ) - if "%1"=="-d" ( - set TARGET=%2 - echo target = !TARGET! - shift - ) - if "%1"=="-sample-options" ( - set SAMPLE_OPTIONS=%2 %3 %4 %5 %6 - echo sample_options = !SAMPLE_OPTIONS! - shift - ) - if "%1"=="-help" ( - echo Classification sample using public SqueezeNet topology - echo. - echo Options: - echo -help Print help message - echo -b BUILD_FOLDER Specify the sample build directory - echo -d DEVICE Specify the target device to infer on; CPU, GPU, HDDL or MYRIAD are acceptable. Sample will look for a suitable plugin for device specified - echo -sample-options OPTIONS Specify command line arguments for the sample - exit /b - ) - shift - goto :input_arguments_loop -) - -set "SOLUTION_DIR64=%BUILD_FOLDER%\inference_engine_cpp_samples_build" - -set TARGET_PRECISION=FP16 - -echo target_precision = !TARGET_PRECISION! - -set models_path=%BUILD_FOLDER%\openvino_models\models -set models_cache=%BUILD_FOLDER%\openvino_models\cache -set irs_path=%BUILD_FOLDER%\openvino_models\ir - -set model_name=squeezenet1.1 - -set target_image_path=%ROOT_DIR%car.png - -set omz_tool_error_message=It is required to download and convert a model. Check https://pypi.org/project/openvino-dev/ to install it. Then run the script again. - -if exist "%ROOT_DIR%..\..\setupvars.bat" ( - call "%ROOT_DIR%..\..\setupvars.bat" -) else ( - echo setupvars.bat is not found, INTEL_OPENVINO_DIR can't be set - goto error -) - -echo INTEL_OPENVINO_DIR is set to %INTEL_OPENVINO_DIR% - -:: Check if Python is installed -python --version 2>NUL -if errorlevel 1 ( - echo Error^: Python is not installed. Please install Python 3.6 ^(64-bit^) or higher from https://www.python.org/downloads/ - goto error -) - -:: Check if Python version is equal or higher 3.4 -for /F "tokens=* USEBACKQ" %%F IN (`python --version 2^>^&1`) DO ( - set version=%%F -) -echo %var% - -for /F "tokens=1,2,3 delims=. " %%a in ("%version%") do ( - set Major=%%b - set Minor=%%c -) - -if "%Major%" geq "3" ( - if "%Minor%" geq "6" ( - set python_ver=okay - ) -) - -if not "%python_ver%"=="okay" ( - echo Unsupported Python version. Please install Python 3.6 ^(64-bit^) or higher from https://www.python.org/downloads/ - goto error -) - -omz_info_dumper --print_all >NUL -if errorlevel 1 ( - echo Error: omz_info_dumper was not found. %omz_tool_error_message% - goto error -) - -omz_downloader --print_all >NUL -if errorlevel 1 ( - echo Error: omz_downloader was not found. %omz_tool_error_message% - goto error -) - -omz_converter --print_all >NUL -if errorlevel 1 ( - echo Error: omz_converter was not found. %omz_tool_error_message% - goto error -) - -for /F "tokens=* usebackq" %%d in ( - `omz_info_dumper --name "%model_name%" ^| - python -c "import sys, json; print(json.load(sys.stdin)[0]['subdirectory'])"` -) do ( - set model_dir=%%d -) - -set ir_dir=%irs_path%\%model_dir%\%target_precision% - -echo. -echo Download public %model_name% model -echo omz_downloader --name "%model_name%" --output_dir "%models_path%" --cache_dir "%models_cache%" -omz_downloader --name "%model_name%" --output_dir "%models_path%" --cache_dir "%models_cache%" -echo %model_name% model downloading completed - -CALL :delay 7 - -if exist "%ir_dir%" ( - echo. - echo Target folder %ir_dir% already exists. Skipping IR generation with Model Optimizer. - echo If you want to convert a model again, remove the entire %ir_dir% folder. - CALL :delay 7 - GOTO buildSample -) - -echo. -echo ###############^|^| Run Model Optimizer ^|^|############### -echo. -CALL :delay 3 - -::set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp -echo omz_converter --mo "%INTEL_OPENVINO_DIR%\tools\model_optimizer\mo.py" --name "%model_name%" -d "%models_path%" -o "%irs_path%" --precisions "%TARGET_PRECISION%" -omz_converter --mo "%INTEL_OPENVINO_DIR%\tools\model_optimizer\mo.py" --name "%model_name%" -d "%models_path%" -o "%irs_path%" --precisions "%TARGET_PRECISION%" -if ERRORLEVEL 1 GOTO errorHandling - -CALL :delay 7 - -:buildSample -echo. -echo ###############^|^| Generate VS solution for Inference Engine samples using cmake ^|^|############### -echo. -CALL :delay 3 - -if "%PROCESSOR_ARCHITECTURE%" == "AMD64" ( - set "PLATFORM=x64" -) else ( - set "PLATFORM=Win32" -) - -if exist "%SOLUTION_DIR64%\CMakeCache.txt" del "%SOLUTION_DIR64%\CMakeCache.txt" - -cd /d "%INTEL_OPENVINO_DIR%\samples\cpp" && cmake -E make_directory "%SOLUTION_DIR64%" && cd /d "%SOLUTION_DIR64%" && cmake -G "Visual Studio 16 2019" -A %PLATFORM% "%INTEL_OPENVINO_DIR%\samples\cpp" -if ERRORLEVEL 1 GOTO errorHandling - -CALL :delay 7 - -echo. -echo ###############^|^| Build Inference Engine samples using cmake ^|^|############### -echo. - -CALL :delay 3 - -echo cmake --build . --config Release --target classification_sample_async -cmake --build . --config Release --target classification_sample_async -if ERRORLEVEL 1 GOTO errorHandling - -CALL :delay 7 - -:runSample -echo. -echo ###############^|^| Run Inference Engine classification sample ^|^|############### -echo. -CALL :delay 3 -copy /Y "%ROOT_DIR%%model_name%.labels" "%ir_dir%" -cd /d "%SOLUTION_DIR64%\intel64\Release" -if not exist classification_sample_async.exe ( - cd /d "%INTEL_OPENVINO_DIR%\samples\cpp\intel64\Release" -) -echo classification_sample_async.exe -i "%target_image_path%" -m "%ir_dir%\%model_name%.xml" -d !TARGET! !SAMPLE_OPTIONS! -classification_sample_async.exe -i "%target_image_path%" -m "%ir_dir%\%model_name%.xml" -d !TARGET! !SAMPLE_OPTIONS! - -if ERRORLEVEL 1 GOTO errorHandling - -echo. -echo ###############^|^| Classification sample completed successfully ^|^|############### - -CALL :delay 10 -cd /d "%ROOT_DIR%" - -goto :eof - -:errorHandling -echo Error -cd /d "%ROOT_DIR%" - -:delay -timeout %~1 2> nul -EXIT /B 0 diff --git a/samples/scripts/run_sample_squeezenet.sh b/samples/scripts/run_sample_squeezenet.sh deleted file mode 100755 index e429326f6d9..00000000000 --- a/samples/scripts/run_sample_squeezenet.sh +++ /dev/null @@ -1,189 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (C) 2018-2022 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -echo -ne "\e[0;33mWARNING: If you get an error when running the sample in the Docker container, you may need to install additional packages. To do this, run the container as root (-u 0) and run install_openvino_dependencies.sh script. If you get a package-independent error, try setting additional parameters using -sample-options.\e[0m\n" - -ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]-$0}" )" && pwd )" -build_dir="$HOME/inference_engine_cpp_samples_build" - -. "$ROOT_DIR/utils.sh" - -usage() { - echo "Classification sample using public SqueezeNet topology" - echo - echo "Options:" - echo " -help Print help message" - echo " -b BUILD_DIR Specify the sample build directory" - echo " -d DEVICE Specify the target device to infer on; CPU, GPU, HDDL or MYRIAD are acceptable. Sample will look for a suitable plugin for device specified" - echo " -sample-options OPTIONS Specify command line arguments for the sample" - echo - exit 1 -} - -trap 'error ${LINENO}' ERR - -target="CPU" - -# parse command line options -while [[ $# -gt 0 ]] -do -key="$1" - -case $key in - -b | --build_dir) - build_dir="$2/inference_engine_cpp_samples_build" - shift - ;; - -h | -help | --help) - usage - ;; - -d) - target="$2" - echo target = "${target}" - shift - ;; - -sample-options) - sampleoptions=("${@:2}") - echo sample-options = "${sampleoptions[*]}" - shift - ;; - *) - # unknown option - ;; -esac -shift -done - -target_precision="FP16" - -echo -ne "target_precision = ${target_precision}\n" - -models_path="$build_dir/../openvino_models/models" -models_cache="$build_dir/../openvino_models/cache" -irs_path="$build_dir/../openvino_models/ir" - -model_name="squeezenet1.1" - -target_image_path="$ROOT_DIR/car.png" - -run_again="Then run the script again.\n\n" -omz_tool_error_message="It is required to download and convert a model. Check https://pypi.org/project/openvino-dev/ to install it. ${run_again}" - -if [ -e "$ROOT_DIR/../../setupvars.sh" ]; then - setupvars_path="$ROOT_DIR/../../setupvars.sh" -else - echo -ne "Error: setupvars.sh is not found\n" -fi - -if ! . "$setupvars_path" ; then - echo -ne "Unable to run ./setupvars.sh. Please check its presence. ${run_again}" - exit 1 -fi - -if [[ -f /etc/centos-release ]]; then - DISTRO="centos" -elif [[ -f /etc/lsb-release ]]; then - DISTRO="ubuntu" -elif [[ -f /etc/redhat-release ]]; then - DISTRO="redhat" -fi - -if [[ $DISTRO == "centos" ]]; then - # check installed Python version - if command -v python3.6 >/dev/null 2>&1; then - python_binary=python3.6 - fi -elif [[ $DISTRO == "redhat" ]]; then - python_binary=python3 -elif [[ $DISTRO == "ubuntu" ]]; then - python_binary=python3 -elif [[ "$OSTYPE" == "darwin"* ]]; then - # check installed Python version - if command -v python3.8 >/dev/null 2>&1; then - python_binary=python3.8 - elif command -v python3.7 >/dev/null 2>&1; then - python_binary=python3.7 - elif command -v python3.6 >/dev/null 2>&1; then - python_binary=python3.6 - else - python_binary=python3 - fi -fi - -if ! command -v $python_binary &>/dev/null; then - echo -ne "\n\nPython 3.6 (x64) or higher is not installed. It is required to run Model Optimizer, please install it. ${run_again}" - exit 1 -fi - -if ! command -v omz_info_dumper &>/dev/null; then - echo -ne "\n\nomz_info_dumper was not found. ${omz_tool_error_message}" - exit 2 -fi - -if ! command -v omz_downloader &>/dev/null; then - echo -ne "\n\nomz_downloader was not found. ${omz_tool_error_message}" - exit 3 -fi - -if ! command -v omz_converter &>/dev/null; then - echo -ne "\n\nomz_converter was not found. ${omz_tool_error_message}" - exit 4 -fi - -# Step 1. Download the Caffe model and the prototxt of the model -echo -ne "\n###############|| Downloading the Caffe model and the prototxt ||###############\n\n" - -model_dir=$(omz_info_dumper --name "$model_name" | - ${python_binary} -c 'import sys, json; print(json.load(sys.stdin)[0]["subdirectory"])') - -print_and_run omz_downloader --name "$model_name" --output_dir "${models_path}" --cache_dir "${models_cache}" - -ir_dir="${irs_path}/${model_dir}/${target_precision}" - -if [ ! -e "$ir_dir" ]; then - # Step 2. Convert a model with Model Optimizer - echo -ne "\n###############|| Convert a model with Model Optimizer ||###############\n\n" - - export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp - print_and_run omz_converter --name "$model_name" -d "$models_path" -o "$irs_path" --precisions "$target_precision" -else - echo -ne "\n\nTarget folder ${ir_dir} already exists. Skipping IR generation with Model Optimizer." - echo -ne "If you want to convert a model again, remove the entire ${ir_dir} folder. ${run_again}" -fi - -# Step 3. Build samples -echo -ne "\n###############|| Build Inference Engine samples ||###############\n\n" - -OS_PATH=$(uname -m) -NUM_THREADS="-j2" - -if [ "$OS_PATH" == "x86_64" ]; then - OS_PATH="intel64" - NUM_THREADS="-j8" -fi - -samples_path="${INTEL_OPENVINO_DIR}/samples/cpp" -build_dir="$HOME/inference_engine_cpp_samples_build" -binaries_dir="${build_dir}/${OS_PATH}/Release" - -if [ -e "$build_dir/CMakeCache.txt" ]; then - rm -rf "$build_dir/CMakeCache.txt" -fi -mkdir -p "$build_dir" -cd "$build_dir" -cmake -DCMAKE_BUILD_TYPE=Release "$samples_path" - -make $NUM_THREADS classification_sample_async - -# Step 4. Run sample -echo -ne "\n###############|| Run Inference Engine classification sample ||###############\n\n" - -cd "$binaries_dir" - -cp -f "$ROOT_DIR/${model_name}.labels" "${ir_dir}/" - -print_and_run ./classification_sample_async -d "$target" -i "$target_image_path" -m "${ir_dir}/${model_name}.xml" "${sampleoptions[@]}" - -echo -ne "\n###############|| Classification sample completed successfully ||###############\n\n" diff --git a/samples/scripts/squeezenet1.1.labels b/samples/scripts/squeezenet1.1.labels deleted file mode 100644 index a509c007481..00000000000 --- a/samples/scripts/squeezenet1.1.labels +++ /dev/null @@ -1,1000 +0,0 @@ -tench, Tinca tinca -goldfish, Carassius auratus -great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias -tiger shark, Galeocerdo cuvieri -hammerhead, hammerhead shark -electric ray, crampfish, numbfish, torpedo -stingray -cock -hen -ostrich, Struthio camelus -brambling, Fringilla montifringilla -goldfinch, Carduelis carduelis -house finch, linnet, Carpodacus mexicanus -junco, snowbird -indigo bunting, indigo finch, indigo bird, Passerina cyanea -robin, American robin, Turdus migratorius -bulbul -jay -magpie -chickadee -water ouzel, dipper -kite -bald eagle, American eagle, Haliaeetus leucocephalus -vulture -great grey owl, great gray owl, Strix nebulosa -European fire salamander, Salamandra salamandra -common newt, Triturus vulgaris -eft -spotted salamander, Ambystoma maculatum -axolotl, mud puppy, Ambystoma mexicanum -bullfrog, Rana catesbeiana -tree frog, tree-frog -tailed frog, bell toad, ribbed toad, tailed toad, Ascaphus trui -loggerhead, loggerhead turtle, Caretta caretta -leatherback turtle, leatherback, leathery turtle, Dermochelys coriacea -mud turtle -terrapin -box turtle, box tortoise -banded gecko -common iguana, iguana, Iguana iguana -American chameleon, anole, Anolis carolinensis -whiptail, whiptail lizard -agama -frilled lizard, Chlamydosaurus kingi -alligator lizard -Gila monster, Heloderma suspectum -green lizard, Lacerta viridis -African chameleon, Chamaeleo chamaeleon -Komodo dragon, Komodo lizard, dragon lizard, giant lizard, Varanus komodoensis -African crocodile, Nile crocodile, Crocodylus niloticus -American alligator, Alligator mississipiensis -triceratops -thunder snake, worm snake, Carphophis amoenus -ringneck snake, ring-necked snake, ring snake -hognose snake, puff adder, sand viper -green snake, grass snake -king snake, kingsnake -garter snake, grass snake -water snake -vine snake -night snake, Hypsiglena torquata -boa constrictor, Constrictor constrictor -rock python, rock snake, Python sebae -Indian cobra, Naja naja -green mamba -sea snake -horned viper, cerastes, sand viper, horned asp, Cerastes cornutus -diamondback, diamondback rattlesnake, Crotalus adamanteus -sidewinder, horned rattlesnake, Crotalus cerastes -trilobite -harvestman, daddy longlegs, Phalangium opilio -scorpion -black and gold garden spider, Argiope aurantia -barn spider, Araneus cavaticus -garden spider, Aranea diademata -black widow, Latrodectus mactans -tarantula -wolf spider, hunting spider -tick -centipede -black grouse -ptarmigan -ruffed grouse, partridge, Bonasa umbellus -prairie chicken, prairie grouse, prairie fowl -peacock -quail -partridge -African grey, African gray, Psittacus erithacus -macaw -sulphur-crested cockatoo, Kakatoe galerita, Cacatua galerita -lorikeet -coucal -bee eater -hornbill -hummingbird -jacamar -toucan -drake -red-breasted merganser, Mergus serrator -goose -black swan, Cygnus atratus -tusker -echidna, spiny anteater, anteater -platypus, duckbill, duckbilled platypus, duck-billed platypus, Ornithorhynchus anatinus -wallaby, brush kangaroo -koala, koala bear, kangaroo bear, native bear, Phascolarctos cinereus -wombat -jellyfish -sea anemone, anemone -brain coral -flatworm, platyhelminth -nematode, nematode worm, roundworm -conch -snail -slug -sea slug, nudibranch -chiton, coat-of-mail shell, sea cradle, polyplacophore -chambered nautilus, pearly nautilus, nautilus -Dungeness crab, Cancer magister -rock crab, Cancer irroratus -fiddler crab -king crab, Alaska crab, Alaskan king crab, Alaska king crab, Paralithodes camtschatica -American lobster, Northern lobster, Maine lobster, Homarus americanus -spiny lobster, langouste, rock lobster, crawfish, crayfish, sea crawfish -crayfish, crawfish, crawdad, crawdaddy -hermit crab -isopod -white stork, Ciconia ciconia -black stork, Ciconia nigra -spoonbill -flamingo -little blue heron, Egretta caerulea -American egret, great white heron, Egretta albus -bittern -crane -limpkin, Aramus pictus -European gallinule, Porphyrio porphyrio -American coot, marsh hen, mud hen, water hen, Fulica americana -bustard -ruddy turnstone, Arenaria interpres -red-backed sandpiper, dunlin, Erolia alpina -redshank, Tringa totanus -dowitcher -oystercatcher, oyster catcher -pelican -king penguin, Aptenodytes patagonica -albatross, mollymawk -grey whale, gray whale, devilfish, Eschrichtius gibbosus, Eschrichtius robustus -killer whale, killer, orca, grampus, sea wolf, Orcinus orca -dugong, Dugong dugon -sea lion -Chihuahua -Japanese spaniel -Maltese dog, Maltese terrier, Maltese -Pekinese, Pekingese, Peke -Shih-Tzu -Blenheim spaniel -papillon -toy terrier -Rhodesian ridgeback -Afghan hound, Afghan -basset, basset hound -beagle -bloodhound, sleuthhound -bluetick -black-and-tan coonhound -Walker hound, Walker foxhound -English foxhound -redbone -borzoi, Russian wolfhound -Irish wolfhound -Italian greyhound -whippet -Ibizan hound, Ibizan Podenco -Norwegian elkhound, elkhound -otterhound, otter hound -Saluki, gazelle hound -Scottish deerhound, deerhound -Weimaraner -Staffordshire bullterrier, Staffordshire bull terrier -American Staffordshire terrier, Staffordshire terrier, American pit bull terrier, pit bull terrier -Bedlington terrier -Border terrier -Kerry blue terrier -Irish terrier -Norfolk terrier -Norwich terrier -Yorkshire terrier -wire-haired fox terrier -Lakeland terrier -Sealyham terrier, Sealyham -Airedale, Airedale terrier -cairn, cairn terrier -Australian terrier -Dandie Dinmont, Dandie Dinmont terrier -Boston bull, Boston terrier -miniature schnauzer -giant schnauzer -standard schnauzer -Scotch terrier, Scottish terrier, Scottie -Tibetan terrier, chrysanthemum dog -silky terrier, Sydney silky -soft-coated wheaten terrier -West Highland white terrier -Lhasa, Lhasa apso -flat-coated retriever -curly-coated retriever -golden retriever -Labrador retriever -Chesapeake Bay retriever -German short-haired pointer -vizsla, Hungarian pointer -English setter -Irish setter, red setter -Gordon setter -Brittany spaniel -clumber, clumber spaniel -English springer, English springer spaniel -Welsh springer spaniel -cocker spaniel, English cocker spaniel, cocker -Sussex spaniel -Irish water spaniel -kuvasz -schipperke -groenendael -malinois -briard -kelpie -komondor -Old English sheepdog, bobtail -Shetland sheepdog, Shetland sheep dog, Shetland -collie -Border collie -Bouvier des Flandres, Bouviers des Flandres -Rottweiler -German shepherd, German shepherd dog, German police dog, alsatian -Doberman, Doberman pinscher -miniature pinscher -Greater Swiss Mountain dog -Bernese mountain dog -Appenzeller -EntleBucher -boxer -bull mastiff -Tibetan mastiff -French bulldog -Great Dane -Saint Bernard, St Bernard -Eskimo dog, husky -malamute, malemute, Alaskan malamute -Siberian husky -dalmatian, coach dog, carriage dog -affenpinscher, monkey pinscher, monkey dog -basenji -pug, pug-dog -Leonberg -Newfoundland, Newfoundland dog -Great Pyrenees -Samoyed, Samoyede -Pomeranian -chow, chow chow -keeshond -Brabancon griffon -Pembroke, Pembroke Welsh corgi -Cardigan, Cardigan Welsh corgi -toy poodle -miniature poodle -standard poodle -Mexican hairless -timber wolf, grey wolf, gray wolf, Canis lupus -white wolf, Arctic wolf, Canis lupus tundrarum -red wolf, maned wolf, Canis rufus, Canis niger -coyote, prairie wolf, brush wolf, Canis latrans -dingo, warrigal, warragal, Canis dingo -dhole, Cuon alpinus -African hunting dog, hyena dog, Cape hunting dog, Lycaon pictus -hyena, hyaena -red fox, Vulpes vulpes -kit fox, Vulpes macrotis -Arctic fox, white fox, Alopex lagopus -grey fox, gray fox, Urocyon cinereoargenteus -tabby, tabby cat -tiger cat -Persian cat -Siamese cat, Siamese -Egyptian cat -cougar, puma, catamount, mountain lion, painter, panther, Felis concolor -lynx, catamount -leopard, Panthera pardus -snow leopard, ounce, Panthera uncia -jaguar, panther, Panthera onca, Felis onca -lion, king of beasts, Panthera leo -tiger, Panthera tigris -cheetah, chetah, Acinonyx jubatus -brown bear, bruin, Ursus arctos -American black bear, black bear, Ursus americanus, Euarctos americanus -ice bear, polar bear, Ursus Maritimus, Thalarctos maritimus -sloth bear, Melursus ursinus, Ursus ursinus -mongoose -meerkat, mierkat -tiger beetle -ladybug, ladybeetle, lady beetle, ladybird, ladybird beetle -ground beetle, carabid beetle -long-horned beetle, longicorn, longicorn beetle -leaf beetle, chrysomelid -dung beetle -rhinoceros beetle -weevil -fly -bee -ant, emmet, pismire -grasshopper, hopper -cricket -walking stick, walkingstick, stick insect -cockroach, roach -mantis, mantid -cicada, cicala -leafhopper -lacewing, lacewing fly -dragonfly, darning needle, devil's darning needle, sewing needle, snake feeder, snake doctor, mosquito hawk, skeeter hawk -damselfly -admiral -ringlet, ringlet butterfly -monarch, monarch butterfly, milkweed butterfly, Danaus plexippus -cabbage butterfly -sulphur butterfly, sulfur butterfly -lycaenid, lycaenid butterfly -starfish, sea star -sea urchin -sea cucumber, holothurian -wood rabbit, cottontail, cottontail rabbit -hare -Angora, Angora rabbit -hamster -porcupine, hedgehog -fox squirrel, eastern fox squirrel, Sciurus niger -marmot -beaver -guinea pig, Cavia cobaya -sorrel -zebra -hog, pig, grunter, squealer, Sus scrofa -wild boar, boar, Sus scrofa -warthog -hippopotamus, hippo, river horse, Hippopotamus amphibius -ox -water buffalo, water ox, Asiatic buffalo, Bubalus bubalis -bison -ram, tup -bighorn, bighorn sheep, cimarron, Rocky Mountain bighorn, Rocky Mountain sheep, Ovis canadensis -ibex, Capra ibex -hartebeest -impala, Aepyceros melampus -gazelle -Arabian camel, dromedary, Camelus dromedarius -llama -weasel -mink -polecat, fitch, foulmart, foumart, Mustela putorius -black-footed ferret, ferret, Mustela nigripes -otter -skunk, polecat, wood pussy -badger -armadillo -three-toed sloth, ai, Bradypus tridactylus -orangutan, orang, orangutang, Pongo pygmaeus -gorilla, Gorilla gorilla -chimpanzee, chimp, Pan troglodytes -gibbon, Hylobates lar -siamang, Hylobates syndactylus, Symphalangus syndactylus -guenon, guenon monkey -patas, hussar monkey, Erythrocebus patas -baboon -macaque -langur -colobus, colobus monkey -proboscis monkey, Nasalis larvatus -marmoset -capuchin, ringtail, Cebus capucinus -howler monkey, howler -titi, titi monkey -spider monkey, Ateles geoffroyi -squirrel monkey, Saimiri sciureus -Madagascar cat, ring-tailed lemur, Lemur catta -indri, indris, Indri indri, Indri brevicaudatus -Indian elephant, Elephas maximus -African elephant, Loxodonta africana -lesser panda, red panda, panda, bear cat, cat bear, Ailurus fulgens -giant panda, panda, panda bear, coon bear, Ailuropoda melanoleuca -barracouta, snoek -eel -coho, cohoe, coho salmon, blue jack, silver salmon, Oncorhynchus kisutch -rock beauty, Holocanthus tricolor -anemone fish -sturgeon -gar, garfish, garpike, billfish, Lepisosteus osseus -lionfish -puffer, pufferfish, blowfish, globefish -abacus -abaya -academic gown, academic robe, judge's robe -accordion, piano accordion, squeeze box -acoustic guitar -aircraft carrier, carrier, flattop, attack aircraft carrier -airliner -airship, dirigible -altar -ambulance -amphibian, amphibious vehicle -analog clock -apiary, bee house -apron -ashcan, trash can, garbage can, wastebin, ash bin, ash-bin, ashbin, dustbin, trash barrel, trash bin -assault rifle, assault gun -backpack, back pack, knapsack, packsack, rucksack, haversack -bakery, bakeshop, bakehouse -balance beam, beam -balloon -ballpoint, ballpoint pen, ballpen, Biro -Band Aid -banjo -bannister, banister, balustrade, balusters, handrail -barbell -barber chair -barbershop -barn -barometer -barrel, cask -barrow, garden cart, lawn cart, wheelbarrow -baseball -basketball -bassinet -bassoon -bathing cap, swimming cap -bath towel -bathtub, bathing tub, bath, tub -beach wagon, station wagon, wagon, estate car, beach waggon, station waggon, waggon -beacon, lighthouse, beacon light, pharos -beaker -bearskin, busby, shako -beer bottle -beer glass -bell cote, bell cot -bib -bicycle-built-for-two, tandem bicycle, tandem -bikini, two-piece -binder, ring-binder -binoculars, field glasses, opera glasses -birdhouse -boathouse -bobsled, bobsleigh, bob -bolo tie, bolo, bola tie, bola -bonnet, poke bonnet -bookcase -bookshop, bookstore, bookstall -bottlecap -bow -bow tie, bow-tie, bowtie -brass, memorial tablet, plaque -brassiere, bra, bandeau -breakwater, groin, groyne, mole, bulwark, seawall, jetty -breastplate, aegis, egis -broom -bucket, pail -buckle -bulletproof vest -bullet train, bullet -butcher shop, meat market -cab, hack, taxi, taxicab -caldron, cauldron -candle, taper, wax light -cannon -canoe -can opener, tin opener -cardigan -car mirror -carousel, carrousel, merry-go-round, roundabout, whirligig -carpenter's kit, tool kit -carton -car wheel -cash machine, cash dispenser, automated teller machine, automatic teller machine, automated teller, automatic teller, ATM -cassette -cassette player -castle -catamaran -CD player -cello, violoncello -cellular telephone, cellular phone, cellphone, cell, mobile phone -chain -chainlink fence -chain mail, ring mail, mail, chain armor, chain armour, ring armor, ring armour -chain saw, chainsaw -chest -chiffonier, commode -chime, bell, gong -china cabinet, china closet -Christmas stocking -church, church building -cinema, movie theater, movie theatre, movie house, picture palace -cleaver, meat cleaver, chopper -cliff dwelling -cloak -clog, geta, patten, sabot -cocktail shaker -coffee mug -coffeepot -coil, spiral, volute, whorl, helix -combination lock -computer keyboard, keypad -confectionery, confectionary, candy store -container ship, containership, container vessel -convertible -corkscrew, bottle screw -cornet, horn, trumpet, trump -cowboy boot -cowboy hat, ten-gallon hat -cradle -crane -crash helmet -crate -crib, cot -Crock Pot -croquet ball -crutch -cuirass -dam, dike, dyke -desk -desktop computer -dial telephone, dial phone -diaper, nappy, napkin -digital clock -digital watch -dining table, board -dishrag, dishcloth -dishwasher, dish washer, dishwashing machine -disk brake, disc brake -dock, dockage, docking facility -dogsled, dog sled, dog sleigh -dome -doormat, welcome mat -drilling platform, offshore rig -drum, membranophone, tympan -drumstick -dumbbell -Dutch oven -electric fan, blower -electric guitar -electric locomotive -entertainment center -envelope -espresso maker -face powder -feather boa, boa -file, file cabinet, filing cabinet -fireboat -fire engine, fire truck -fire screen, fireguard -flagpole, flagstaff -flute, transverse flute -folding chair -football helmet -forklift -fountain -fountain pen -four-poster -freight car -French horn, horn -frying pan, frypan, skillet -fur coat -garbage truck, dustcart -gasmask, respirator, gas helmet -gas pump, gasoline pump, petrol pump, island dispenser -goblet -go-kart -golf ball -golfcart, golf cart -gondola -gong, tam-tam -gown -grand piano, grand -greenhouse, nursery, glasshouse -grille, radiator grille -grocery store, grocery, food market, market -guillotine -hair slide -hair spray -half track -hammer -hamper -hand blower, blow dryer, blow drier, hair dryer, hair drier -hand-held computer, hand-held microcomputer -handkerchief, hankie, hanky, hankey -hard disc, hard disk, fixed disk -harmonica, mouth organ, harp, mouth harp -harp -harvester, reaper -hatchet -holster -home theater, home theatre -honeycomb -hook, claw -hoopskirt, crinoline -horizontal bar, high bar -horse cart, horse-cart -hourglass -iPod -iron, smoothing iron -jack-o'-lantern -jean, blue jean, denim -jeep, landrover -jersey, T-shirt, tee shirt -jigsaw puzzle -jinrikisha, ricksha, rickshaw -joystick -kimono -knee pad -knot -lab coat, laboratory coat -ladle -lampshade, lamp shade -laptop, laptop computer -lawn mower, mower -lens cap, lens cover -letter opener, paper knife, paperknife -library -lifeboat -lighter, light, igniter, ignitor -limousine, limo -liner, ocean liner -lipstick, lip rouge -Loafer -lotion -loudspeaker, speaker, speaker unit, loudspeaker system, speaker system -loupe, jeweler's loupe -lumbermill, sawmill -magnetic compass -mailbag, postbag -mailbox, letter box -maillot -maillot, tank suit -manhole cover -maraca -marimba, xylophone -mask -matchstick -maypole -maze, labyrinth -measuring cup -medicine chest, medicine cabinet -megalith, megalithic structure -microphone, mike -microwave, microwave oven -military uniform -milk can -minibus -miniskirt, mini -minivan -missile -mitten -mixing bowl -mobile home, manufactured home -Model T -modem -monastery -monitor -moped -mortar -mortarboard -mosque -mosquito net -motor scooter, scooter -mountain bike, all-terrain bike, off-roader -mountain tent -mouse, computer mouse -mousetrap -moving van -muzzle -nail -neck brace -necklace -nipple -notebook, notebook computer -obelisk -oboe, hautboy, hautbois -ocarina, sweet potato -odometer, hodometer, mileometer, milometer -oil filter -organ, pipe organ -oscilloscope, scope, cathode-ray oscilloscope, CRO -overskirt -oxcart -oxygen mask -packet -paddle, boat paddle -paddlewheel, paddle wheel -padlock -paintbrush -pajama, pyjama, pj's, jammies -palace -panpipe, pandean pipe, syrinx -paper towel -parachute, chute -parallel bars, bars -park bench -parking meter -passenger car, coach, carriage -patio, terrace -pay-phone, pay-station -pedestal, plinth, footstall -pencil box, pencil case -pencil sharpener -perfume, essence -Petri dish -photocopier -pick, plectrum, plectron -pickelhaube -picket fence, paling -pickup, pickup truck -pier -piggy bank, penny bank -pill bottle -pillow -ping-pong ball -pinwheel -pirate, pirate ship -pitcher, ewer -plane, carpenter's plane, woodworking plane -planetarium -plastic bag -plate rack -plow, plough -plunger, plumber's helper -Polaroid camera, Polaroid Land camera -pole -police van, police wagon, paddy wagon, patrol wagon, wagon, black Maria -poncho -pool table, billiard table, snooker table -pop bottle, soda bottle -pot, flowerpot -potter's wheel -power drill -prayer rug, prayer mat -printer -prison, prison house -projectile, missile -projector -puck, hockey puck -punching bag, punch bag, punching ball, punchball -purse -quill, quill pen -quilt, comforter, comfort, puff -racer, race car, racing car -racket, racquet -radiator -radio, wireless -radio telescope, radio reflector -rain barrel -recreational vehicle, RV, R.V. -reel -reflex camera -refrigerator, icebox -remote control, remote -restaurant, eating house, eating place, eatery -revolver, six-gun, six-shooter -rifle -rocking chair, rocker -rotisserie -rubber eraser, rubber, pencil eraser -rugby ball -rule, ruler -running shoe -safe -safety pin -saltshaker, salt shaker -sandal -sarong -sax, saxophone -scabbard -scale, weighing machine -school bus -schooner -scoreboard -screen, CRT screen -screw -screwdriver -seat belt, seatbelt -sewing machine -shield, buckler -shoe shop, shoe-shop, shoe store -shoji -shopping basket -shopping cart -shovel -shower cap -shower curtain -ski -ski mask -sleeping bag -slide rule, slipstick -sliding door -slot, one-armed bandit -snorkel -snowmobile -snowplow, snowplough -soap dispenser -soccer ball -sock -solar dish, solar collector, solar furnace -sombrero -soup bowl -space bar -space heater -space shuttle -spatula -speedboat -spider web, spider's web -spindle -sports car, sport car -spotlight, spot -stage -steam locomotive -steel arch bridge -steel drum -stethoscope -stole -stone wall -stopwatch, stop watch -stove -strainer -streetcar, tram, tramcar, trolley, trolley car -stretcher -studio couch, day bed -stupa, tope -submarine, pigboat, sub, U-boat -suit, suit of clothes -sundial -sunglass -sunglasses, dark glasses, shades -sunscreen, sunblock, sun blocker -suspension bridge -swab, swob, mop -sweatshirt -swimming trunks, bathing trunks -swing -switch, electric switch, electrical switch -syringe -table lamp -tank, army tank, armored combat vehicle, armoured combat vehicle -tape player -teapot -teddy, teddy bear -television, television system -tennis ball -thatch, thatched roof -theater curtain, theatre curtain -thimble -thresher, thrasher, threshing machine -throne -tile roof -toaster -tobacco shop, tobacconist shop, tobacconist -toilet seat -torch -totem pole -tow truck, tow car, wrecker -toyshop -tractor -trailer truck, tractor trailer, trucking rig, rig, articulated lorry, semi -tray -trench coat -tricycle, trike, velocipede -trimaran -tripod -triumphal arch -trolleybus, trolley coach, trackless trolley -trombone -tub, vat -turnstile -typewriter keyboard -umbrella -unicycle, monocycle -upright, upright piano -vacuum, vacuum cleaner -vase -vault -velvet -vending machine -vestment -viaduct -violin, fiddle -volleyball -waffle iron -wall clock -wallet, billfold, notecase, pocketbook -wardrobe, closet, press -warplane, military plane -washbasin, handbasin, washbowl, lavabo, wash-hand basin -washer, automatic washer, washing machine -water bottle -water jug -water tower -whiskey jug -whistle -wig -window screen -window shade -Windsor tie -wine bottle -wing -wok -wooden spoon -wool, woolen, woollen -worm fence, snake fence, snake-rail fence, Virginia fence -wreck -yawl -yurt -web site, website, internet site, site -comic book -crossword puzzle, crossword -street sign -traffic light, traffic signal, stoplight -book jacket, dust cover, dust jacket, dust wrapper -menu -plate -guacamole -consomme -hot pot, hotpot -trifle -ice cream, icecream -ice lolly, lolly, lollipop, popsicle -French loaf -bagel, beigel -pretzel -cheeseburger -hotdog, hot dog, red hot -mashed potato -head cabbage -broccoli -cauliflower -zucchini, courgette -spaghetti squash -acorn squash -butternut squash -cucumber, cuke -artichoke, globe artichoke -bell pepper -cardoon -mushroom -Granny Smith -strawberry -orange -lemon -fig -pineapple, ananas -banana -jackfruit, jak, jack -custard apple -pomegranate -hay -carbonara -chocolate sauce, chocolate syrup -dough -meat loaf, meatloaf -pizza, pizza pie -potpie -burrito -red wine -espresso -cup -eggnog -alp -bubble -cliff, drop, drop-off -coral reef -geyser -lakeside, lakeshore -promontory, headland, head, foreland -sandbar, sand bar -seashore, coast, seacoast, sea-coast -valley, vale -volcano -ballplayer, baseball player -groom, bridegroom -scuba diver -rapeseed -daisy -yellow lady's slipper, yellow lady-slipper, Cypripedium calceolus, Cypripedium parviflorum -corn -acorn -hip, rose hip, rosehip -buckeye, horse chestnut, conker -coral fungus -agaric -gyromitra -stinkhorn, carrion fungus -earthstar -hen-of-the-woods, hen of the woods, Polyporus frondosus, Grifola frondosa -bolete -ear, spike, capitulum -toilet tissue, toilet paper, bathroom tissue diff --git a/samples/scripts/utils.sh b/samples/scripts/utils.sh deleted file mode 100644 index 6b100d1d37c..00000000000 --- a/samples/scripts/utils.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (C) 2018-2022 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -error() { - local code="${3:-1}" - if [[ -n "$2" ]]; then - echo "Error on or near line $1: $2; exiting with status ${code}" - else - echo "Error on or near line $1; exiting with status ${code}" - fi - exit "${code}" -} - -print_and_run() { - printf 'Run' - printf ' %q' "$@" - printf '\n\n' - "$@" -}