TB3 Movidius Neural Compute Stick 2.08

From wikidb
Jump to: navigation, search

Download Release 2.08.01

Install

 $ mkdir -p ~/workspace
 
 $ cd ~/workspace
 
 $ mv ~/Downloads/ncsdk-2.08.01.02.tar.gz .
 
 $ tar xzf ncsdk-2.08.01.02.tar.gz
 
 $ cd ncsdk-2.08.01.03
 $ make install

 $ cat /opt/movidius/version.txt 
     2.08.01.02

NCS 2.08 Install Log

Examples

  • Plug in the Movidius NCS
 $ lsusb
     Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
     Bus 001 Device 005: ID 04f3:2494 Elan Microelectronics Corp. 
     Bus 001 Device 004: ID 8087:0a2a Intel Corp. 
     Bus 001 Device 003: ID 0bda:58c2 Realtek Semiconductor Corp. 
     Bus 001 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
     Bus 001 Device 006: ID 03e7:2150  
     Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  • Movidius is the 03e7:2150 device
 $ cd ncsdk-2.08.01.02/

 $ make examples

NCS 2.08.01 Examples Install Log

 $ df
     Filesystem     1K-blocks     Used Available Use% Mounted on
     ...
     /dev/sda7       92535808 11910844  75901304  14% /
     ...

Tests

Python

 $ cd ~/workspace/ncsdk-2.08.01.02/examples/apps/hello_ncs_py/

 $ python --version
     Python 2.7.12

 $ python hello_ncs.py 
       D: [         0] ncDeviceCreate:308	ncDeviceCreate index 0
       D: [         0] ncDeviceCreate:308	ncDeviceCreate index 1
       D: [         0] ncDeviceOpen:524	File path /usr/local/lib/mvnc/MvNCAPI-ma2450.mvcmd
       I: [         0] ncDeviceOpen:530	ncDeviceOpen() XLinkBootRemote returned success 0
       I: [         0] ncDeviceOpen:568	XLinkConnect done - link Id 0
       D: [         0] ncDeviceOpen:582	done
       I: [         0] ncDeviceOpen:584	Booted 2-ma2450 -> VSC
       I: [         0] getDevAttributes:383	Device attributes
       I: [         0] getDevAttributes:386	Device FW version: 2.8.2450.16e
       I: [         0] getDevAttributes:388	mvTensorVersion 2.8 
       I: [         0] getDevAttributes:389	Maximum graphs: 10
       I: [         0] getDevAttributes:390	Maximum fifos: 20
       I: [         0] getDevAttributes:392	Maximum graph option class: 1
       I: [         0] getDevAttributes:394	Maximum device option class: 1
       I: [         0] getDevAttributes:395	Device memory capacity: 522059056
     Hello NCS! Device opened normally.
       I: [         0] ncDeviceClose:776	closing device
     Goodbye NCS! Device closed normally.
     NCS device working.

C++

 $ cd ../hello_ncs_cpp/

 $ make run

     making hello_ncs_cpp
     g++ cpp/hello_ncs.cpp -o cpp/hello_ncs_cpp -lmvnc
     Created cpp/hello_ncs_cpp executable

     making run
     cd cpp; ./hello_ncs_cpp; cd ..
     Hello NCS! Device opened normally.
     Goodbye NCS!  Device Closed normally.
     NCS device working.

Tensorflow Example

$ cd ~/workspace/ncsdk-2.0 8.01.02/examples/tensorflow/inception_v3

$ make all

NCS 2.08.01 Tensorflow Examples Make Log for above