@@ -16,10 +16,13 @@ build_openvino_binary()
1616 local TARGET_PATH=$1
1717 cd $TARGET_PATH
1818
19+ # Install openvino toolkit
1920 mkdir -p openvino_binart
2021 cd openvino_binart
21- wget -c http://registrationcenter-download.intel.com/akdlm/irc_nas/15512/l_openvino_toolkit_p_2019.1.144.tgz
22- tar -xvf l_openvino_toolkit_p_2019.1.144.tgz
22+ if [ ! -f " l_openvino_toolkit_p_2019.1.144/install_openvino_dependencies.sh" ]; then
23+ wget -c http://registrationcenter-download.intel.com/akdlm/irc_nas/15512/l_openvino_toolkit_p_2019.1.144.tgz
24+ tar -xvf l_openvino_toolkit_p_2019.1.144.tgz
25+ fi
2326 cd l_openvino_toolkit_p_2019.1.144
2427 sudo ./install_openvino_dependencies.sh
2528 sed -i ' s/ACCEPT_EULA=decline/ACCEPT_EULA=accept/g' silent.cfg
@@ -32,6 +35,7 @@ build_openvino_binary()
3235 # cd /opt/intel/openvino/install_dependencies
3336 # sudo ./install_NEO_OCL_driver.sh
3437
38+ # Build sample code under openvino toolkit
3539 # shellcheck disable=SC1091
3640 . /opt/intel/openvino/bin/setupvars.sh
3741 cd $TARGET_PATH
@@ -41,6 +45,7 @@ build_openvino_binary()
4145 cmake /opt/intel/openvino/deployment_tools/inference_engine/samples/ && make && cd ..
4246 sudo /bin/cp -rf build /opt/intel/openvino/deployment_tools/inference_engine/samples/
4347
48+ # Download and convert a trained model to produce an optimized Intermediate Representation (IR) of the model
4449 cd /opt/intel/openvino/deployment_tools/model_optimizer/install_prerequisites
4550 sudo ./install_prerequisites.sh
4651 mkdir -p ~ /Downloads/models
@@ -53,32 +58,31 @@ build_openvino_binary()
5358 sudo ln -sf ~ /Downloads/models/mask_rcnn_inception_v2_coco_2018_01_28 /opt/models/
5459
5560 cd /opt/intel/openvino/deployment_tools/tools/model_downloader
56- sudo python3 ./downloader.py --name mobilenet-ssd
61+ # sudo python3 ./downloader.py --name mobilenet-ssd
5762
5863 # FP32 python3 [buffer]
5964 sudo python3 /opt/intel/openvino/deployment_tools/model_optimizer/mo.py --input_model /opt/intel/openvino/deployment_tools/tools/model_downloader/object_detection/common/mobilenet-ssd/caffe/mobilenet-ssd.caffemodel --output_dir /opt/intel/openvino/deployment_tools/tools/model_downloader/object_detection/common/mobilenet-ssd/caffe/output/FP32 --mean_values [127.5,127.5,127.5] --scale_values [127.5]
6065 # FP16 precision model
6166 sudo python3 /opt/intel/openvino/deployment_tools/model_optimizer/mo.py --input_model /opt/intel/openvino/deployment_tools/tools/model_downloader/object_detection/common/mobilenet-ssd/caffe/mobilenet-ssd.caffemodel --output_dir /opt/intel/openvino/deployment_tools/tools/model_downloader/object_detection/common/mobilenet-ssd/caffe/output/FP16 --data_type=FP16 --mean_values [127.5,127.5,127.5] --scale_values [127.5]
6267 # download the optimized Intermediate Representation (IR) of model (excute once)
63- sudo python3 downloader.py --name face-detection-adas-0001
64- sudo python3 downloader.py --name face-detection-adas-0001-fp16
65- sudo python3 downloader.py --name age-gender-recognition-retail-0013
66- sudo python3 downloader.py --name emotions-recognition-retail-0003
67- sudo python3 downloader.py --name head-pose-estimation-adas-0001
68- sudo python3 downloader.py --name person-detection-retail-0013
69- sudo python3 downloader.py --name person-reidentification-retail-0076
70- sudo python3 downloader.py --name landmarks-regression-retail-0009
71- sudo python3 downloader.py --name face-reidentification-retail-0095
72- sudo python3 downloader.py --name vehicle-license-plate-detection-barrier-0106
73- sudo python3 downloader.py --name vehicle-attributes-recognition-barrier-0039
74- sudo python3 downloader.py --name license-plate-recognition-barrier-0001
68+ # sudo python3 downloader.py --name face-detection-adas-0001
69+ # sudo python3 downloader.py --name face-detection-adas-0001-fp16
70+ # sudo python3 downloader.py --name age-gender-recognition-retail-0013
71+ # sudo python3 downloader.py --name emotions-recognition-retail-0003
72+ # sudo python3 downloader.py --name head-pose-estimation-adas-0001
73+ # sudo python3 downloader.py --name person-detection-retail-0013
74+ # sudo python3 downloader.py --name person-reidentification-retail-0076
75+ # sudo python3 downloader.py --name landmarks-regression-retail-0009
76+ # sudo python3 downloader.py --name face-reidentification-retail-0095
77+ # sudo python3 downloader.py --name vehicle-license-plate-detection-barrier-0106
78+ # sudo python3 downloader.py --name vehicle-attributes-recognition-barrier-0039
79+ # sudo python3 downloader.py --name license-plate-recognition-barrier-0001
7580 echo " Install OPENVINO SUCCESS!"
7681}
7782
7883config_usb_rules ()
7984{
80- # Configure the Neural Compute Stick USB Driver
81- cd ~ /Downloads
85+ # Configure the Neural Compute Stick USB Driver
8286 sudo bash -c ' cat << EOF > /etc/udev/rules.d/97-usbboot.rules
8387SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
8488SUBSYSTEM=="usb", ATTRS{idProduct}=="2485", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
96100main ()
97101{
98102 if [[ " $DEFAULT_INSTALL " != " true" ]]; then
99- echo " Default not install , skip"
103+ echo " Default not istall , skip"
100104 exit
101105 fi
102106
0 commit comments