This page provides guidance for installing the Intel® Movidius™ Neural Compute SDK (Intel® Movidius™ NCSDK).
https://github.com/Movidius/ncsdk
To perform the typical installation of the NCSDK, use the following command on your host machine:
git clone -b ncsdk2 http://github.com/Movidius/ncsdk && cd ncsdk && make install
The -b ncsdk2 option checks out the latest version of NCSDK 2 from the ncsdk2 branch. If you omit this option you will install the NCSDK version on the master branch, which is currently NCSDK 1.x.
Warning: Upgrading from NCSDK 1.x to NCSDK 2.x If you currently have NCSDK 1.x installed and you are installing NCSDK 2.x, the Neural Compute API (NCAPI) will be upgraded from v1 to v2. NCAPI v2 is not backwards-compatible with NCAPI v1 (i.e. programs written with NCAPI v1 will not compile or run with NCAPI v2). However, all of your NCAPI v1 files will be moved to /opt/movidius/ncsdk1.
For more information about NCAPI changes, see the Neural Compute API overview.
Important: Caffe Users: If you are installing on a host machine that already has Caffe installed and its directory is already in the PYTHONPATH environment variable, you must remove the existing Caffe directory from the PYTHONPATH environment variable prior to installing the NCSDK. You will need to manually modify the PYTHONPATH to match your development needs such that it points to the Caffe version installed with the NCSDK when using the NCSDK and it points to other Caffe versions when you wish to use those.
Important: The installation will only set the PYTHONPATH environment variable for the current user. It will do so by modifying the .bashrc file for that user. To use the NCSDK as another user on the host machine you will need to manually set the PYTHONPATH for that user.
We recommend a 16GB SD card for a full NCSDK installation.
You will likely need to increase the swapfile size on the Raspberry Pi in order to successfully complete NCSDK and/or OpenCV installation. To increase the swapfile size, edit the value of CONF_SWAPSIZE in /etc/dphys-swapfile:
sudo nano /etc/dphys-swapfile
The default value is 100 (MB). We recommend that you change this to 1024 (MB) or greater.
Then restart the swapfile service:
sudo /etc/init.d/dphys-swapfile restart
Proceed with installation as shown above. After you have installed the NCSDK (and optionally OpenCV), you should change the swapfile size back to 100 MB.
To uninstall the NCSDK, type the following command:
make uninstall
foreverstrong@strong:~/ncs_work/ncsdk$ make uninstall
make uninstall starting.
./uninstall.sh
Movidius Neural Compute Toolkit uninstall
Reading installer configuration variables from ./ncsdk.conf
[sudo] password for foreverstrong:
......
Successfully uninstalled NCSDK from the system
Remove NCSDK references from PYTHONPATH...done
Removing /opt/movidius/ssd-caffe...done
Removing /opt/movidius/...done
Movidius Neural Compute Toolkit uninstall finished
foreverstrong@strong:~/ncs_work/ncsdk$
安装过程:
foreverstrong@strong:~$ sudo apt-get update
foreverstrong@strong:~$ mkdir ncs_work
foreverstrong@strong:~$
foreverstrong@strong:~$ cd ncs_work/
foreverstrong@strong:~/ncs_work$ ls
foreverstrong@strong:~/ncs_work$
foreverstrong@strong:~/ncs_work$ git clone -b ncsdk2 https://github.com/movidius/ncsdk.git
Cloning into 'ncsdk'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1187 (delta 0), reused 0 (delta 0), pack-reused 1186
Receiving objects: 100% (1187/1187), 70.24 MiB | 3.40 MiB/s, done.
Resolving deltas: 100% (668/668), done.
Checking connectivity... done.
foreverstrong@strong:~/ncs_work$
foreverstrong@strong:~/ncs_work$ cd ncsdk/
foreverstrong@strong:~/ncs_work/ncsdk$
foreverstrong@strong:~/ncs_work/ncsdk$ make install
./uninstall-opencv.sh
OpenCV uninstall starting
Reading installer configuration variables from ./ncsdk.conf
OpenCV uninstall finished
make install starting.
./install.sh
Movidius Neural Compute Toolkit Installation
Installer NCSDK version: 2.08.01.02
Reading installer configuration variables from ./ncsdk.conf
......
Successfully installed mvnc-2.8.1.2
You are using pip version 8.1.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
NCS Python API has been installed in /opt/movidius, and PYTHONPATH environment variable updated
NCS Libraries have been installed in /usr/local/lib
Updating udev rules...
Adding user 'foreverstrong' to 'users' group
Installation is complete.
Please provide feedback in our support forum if you encountered difficulties.
The PYTHONPATH environment variable was added to your .bashrc as described in the Caffe documentation.
New bash processes including new terminals will use the updated value of PYTHONPATH.
To use the NCSDK in this shell, set PYTHONPATH now:
export PYTHONPATH="${PYTHONPATH}:/opt/movidius/caffe/python"
foreverstrong@strong:~/ncs_work/ncsdk$
Plug the NCS to your system’s USB port and run these commands on a new terminal window.
foreverstrong@strong:~/ncs_work/ncsdk$ make examples
./install-opencv.sh
OpenCV Installation Starting
Reading installer configuration variables from ./ncsdk.conf
[sudo] password for strong:
......
foreverstrong@strong:~/ncs_work/ncsdk$