Skip to content

Instantly share code, notes, and snippets.

@satr
Last active July 7, 2020 20:23
Show Gist options
  • Save satr/63243285bf6227055895bcc9984bea96 to your computer and use it in GitHub Desktop.
Save satr/63243285bf6227055895bcc9984bea96 to your computer and use it in GitHub Desktop.
Errors and outdated info for guideline "Arm7* Single Board Computers and the Intel® Neural Compute Stick 2 (Intel® NCS 2)"
#Original guideline:
https://software.intel.com/content/www/us/en/develop/articles/arm-sbc-and-ncs2.html
#Following commands are actually three, with correct dash:
$ ./bootstrapmake –j4
$ make install
It should be:
$ ./bootstrap
$ make -j4
$ sudo make install
#Warn that some commands (particularly "install") should be done as "sudo"
#In following command - not all dashes are correct
git submodule update –-recursive
cmake –DCMAKE_BUILD_TYPE=Release –DCMAKE_INSTALL_PREFIX=/usr/local ..
#Correct OpenCV_DIR
export OpenCV_DIR=/usr/local/include/opencv4/
Error: "include could not find load file: features_ie"
https://github.com/openvinotoolkit/openvino/issues/284
#use
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_MKL_DNN=OFF -DENABLE_CLDNN=OFF -DENABLE_GNA=OFF -DENABLE_SSE42=OFF -DTHREADING=SEQ ../..
#Build files have been written to: /home/pi/dldt/inference-engine/build
#The builds are placed not in <dldt>/inference-engine/bin/armv7/Release/
but in <dldt>/bin/armv7l/Release/
#Models updated links
https://download.01.org/opencv/2019/open_model_zoo/R4/20200117_150000_models_bin/age-gender-recognition-retail-0013/FP16/age-gender-recognition-retail-0013.bin
https://download.01.org/opencv/2019/open_model_zoo/R4/20200117_150000_models_bin/age-gender-recognition-retail-0013/FP16/age-gender-recognition-retail-0013.xml
#Not clear where to take from "97-myriad-usbboot.rules_.txt". Used this one:
sudo cp ~/dldt/inference-engine/thirdparty/movidius/mvnc/src/97-myriad-usbboot.rules /etc/udev/rules.d/97-myriad-usbboot.rules
#Or download an archive from the bottom of following page ("97-myriad-usbboot.rules_.txt" is same as one above):
https://software.intel.com/content/www/us/en/develop/articles/python3-sbc-and-ncs2.html
#Download and unpack:
cd ~
wget https://software.intel.com/content/dam/develop/external/us/en/documents/Setup%20Additional%20Files%20Package.tar.gz
tar xvf "Setup Additional Files Package.tar.gz"
#"benchmark_app" is another folder
cd ~/dldt/bin/armv7l/Release
#Ensure correct option flags "-i" and "-m"
#benchmark_app does not support option "-pp" (path to plugins)
./benchmark_app -i ~/president_reagan-62x62.png -m ~/models/age-gender-recognition-retail-0013.xml -pp ./lib -api async -d MYRIAD
#"<OpenVINO folder>/inference-engine/bin/armv7/Release/" is "~/dldt/bin/armv7l/Release"
#"~/OpenVINO/cat.jpg" in other part of the guideline is expected to be in "~" (user-home) folder
#Where to get "squeezenet1.1 network model"?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment