原文(英):https://movidius.github.io/ncsdk/install.html
Movidius™ Neural Compute SDK 安装与配置
本文提供 Intel® Movidius™ Neural Compute Stick (Intel® Movidius™ NCS) 的安装与配置信息,包括在软件库的示范程序的用法。为了使用 NCS, 你需要有一个开发用计算机,然后安装 Intel Movidius Neural Compute SDK。该 SDK 提供了一个选项,决定是否安装库的示范程序。如果已经安装该SDK,可以再次选择是否安装这些例程。如果还没有安装 SDK, 可以按照下面的进行安装.。出现提示时,选择相应的选项。
预先要求
为了 build 和 run 这些例程, 需要有这些:
- Intel Movidius Neural Compute Stick
- Intel Movidius Neural Compute SDK
- 开发计算机,安装 OS:
- x86-64 with Ubuntu (64 bit) 16.04 Desktop
- Raspberry Pi 3 with Raspian Stretch (starting with SDK 1.09.xx)
- Virtual Machine per the supported VM configuration
- Internet connection
- USB camera (可选)
连接Movidius NCS 到开发计算机
The Intel Movidius NCS connects to the development computer over a USB 2.0 High Speed interface. Plug the Intel Movidius NCS directly to a USB port on your development computer or into a powered USB hub that is plugged into your development computer.
安装 SDK 和 Examples
To install the SDK along with the examples in this repository, use the following command on your development computer. This is the typical installation. If your development machine already has caffe installed see the note below. If you haven’t already installed the SDK on your development computer, you should use this command to install:
git clone http://github.com/Movidius/ncsdk && cd ncsdk && make install && make examples
Note: if you are installing on a machine that already has caffe installed and it’s directory is already in the PYTHONPATH environment variable you will need to manually remove the existing directory from the PYTHONPATH environment variable prior to installing the ncsdk. Also, you will need to manually adjust 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 using those.
Note: 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 sdk as other users on the machine you will need to manually set the PYTHONPATH for those other users.
安装Examples,不安装 SDK
To install only the examples and not the SDK on your development computer, use the following command to clone the repository and then make appropriate examples for your development computer. If you already have the SDK installed and only need the examples on your machine, you should use this command to install the examples:
git clone http://github.com/Movidius/ncsdk && cd ncsdk && make examples
构建 Individual Examples
Whether installing with the SDK or without it, both methods above will install and build the examples that are appropriate for your development system, including prerequisite software. Each example comes with its own Makefile that will install only that specific example and any prerequisites that it requires. To install and build any individual example, run the ‘make’ command from within that example’s base directory. For example, to build the GoogLeNet examples, type the following command:
cd examples/Caffe/GoogLeNet && make
The Makefile for each example also has a ‘help’ target that will display all possible targets. To see all possible targets for any example, use the following command from within the examples top directory:
make help
卸载 SDK
To uninstall the SDK, type the following command:
make uninstall
安装 Manifest
For the list of files that ‘make install’ will modify on your system (outside of the repository), see the installation manifest.