As announced in the Release Notes, the Intel® Distribution of OpenVINO™ toolkit 2018 R5 release introduced preview support for Raspbian* 9 as a host for the Intel® Movidius™ Neural Compute Stick and Intel® Neural Compute Stick 2 targets. This paper provides preliminary information and resources for setting up and running Intel® Distribution of OpenVINO™ toolkit on the Raspberry Pi* 3 Model B single board computer with the latest Intel® Neural Compute Stick 2 powered by the Intel® Movidius™ Vision Processing Unit X.
The following software and hardware components are required to get a Raspberry Pi single board computer up and running with Intel® Distribution of OpenVINO™ toolkit and an Intel® Movidius™ Neural Compute Stick 2 target:
In order to install Intel® Distribution of OpenVINO™ toolkit on your Raspberry Pi 3 Model B board, you must be running the Raspbian 9 (Stretch) operating system. To check the OS version running on your board, open a terminal (Ctrl-Alt-t) and enter the following command:
The output of this command should look similar to Figure 1.
Figure 1. Raspbian operating system version
For this article, we did a fresh installation of the Raspbian Stretch with desktop and recommended software distribution, which is available here. If you would like to do the same, download the zip file and then follow the directions available here to write the OS image to a microSD* card.
Figure 2. microSD card installation
Once the flashed microSD card is installed in the Raspberry Pi 3 Model B single board computer (see Figure 2), apply power and follow the instructions to choose your locale, connect to a Wi-Fi network with Internet connectivity, update the software and reboot.
Refer to the guide “Install the Intel® Distribution of OpenVINO™ toolkit for Raspbian* OS” published here. This guide contains all of the required steps required to install and test the Intel® Distribution of OpenVINO™ toolkit on the Raspberry Pi board.
sudo apt-get install build-essentials cmake pkg-config
Figure 3. Swap space reported with free –m
Assuming you were able to complete the Intel® Distribution of OpenVINO™ toolkit installation and run the samples as described in “Install the Intel® Distribution of OpenVINO™ Toolkit for Raspbian OS”, you may want to check out this project on GitHub*. The following steps will help you get YOLOv3 running on your Raspberry Pi NCS2-enabled system:
Figure 4. Test setup
cd ~ git clone https://github.com/PINTO0309/OpenVINO-YoloV3.git
cd ~/OpenVINO-YoloV3/lrmodels/YoloV3/FP16 chmod +x download_yolov3lrFP16.sh sudo ./download_yolov3lrFP16.sh
Figure 5. Python* code change to specify FP16 model
cd ~/OpenVINO-YoloV3 python3 openvino_yolov3_test.py –d MYRIAD
If you’ve been following along with the steps outlined in this paper then you should now have a functional Raspberry Pi 3 single board computer running the Intel® Distribution of OpenVINO™ toolkit with the Intel® Neural Compute Stick 2. For more information on the Intel® Distribution of OpenVINO™ toolkit, be sure to check out the Intel® Developer Zone Computer Vision Community Forum.
This document contains information on products, services and/or processes in development. All information provided here is subject to change without notice. Contact your Intel representative to obtain the latest forecast, schedule, specifications, and roadmaps.
The products and services described may contain defects or errors known as errata which may cause deviations from published specifications. Current characterized errata are available on request.
Copies of documents which have an order number and are referenced in this document may be obtained by calling 1-800-548-4725 or by visiting www.intel.com/design/literature.htm.
Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.
Notice revision #20110804