Difference between revisions of "TB3 Movidius Neural Compute Stick 1.12.01.01"

From wikidb
Jump to: navigation, search
(Download Release 1.12.01.01)
(Tensorflow Example)
 
(10 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
Clay Hofrock told me that NCS SDK 1.* is compatible with ROS Kinetic. It works with Python 2. (6/16/18) This gets around the problem with NCS SDK 2.* needing Python 3.0 which is not compatible with Kinetic's cv2.so library.
 
Clay Hofrock told me that NCS SDK 1.* is compatible with ROS Kinetic. It works with Python 2. (6/16/18) This gets around the problem with NCS SDK 2.* needing Python 3.0 which is not compatible with Kinetic's cv2.so library.
 +
 +
= Reference =
 +
 +
* [https://github.com/movidius/ncsdk NCSDK Install]
  
 
= Moved Release v2 Out of the Way =
 
= Moved Release v2 Out of the Way =
Line 18: Line 22:
  
 
= Download Release 1.12.01.01 =
 
= Download Release 1.12.01.01 =
 
NOT 1.12.00.10
 
  
 
* [https://github.com/movidius/ncsdk/releases NCSDK Release]  
 
* [https://github.com/movidius/ncsdk/releases NCSDK Release]  
** [https://github.com/movidius/ncsdk/releases/tag/v1.12.01.01 v1.12.01.01]
+
** [https://github.com/movidius/ncsdk/releases/tag/v1.12.01.01 v1.12.01.01] download the tar.gz
* [https://github.com/movidius/ncsdk github location]
+
* click on "release" tab
+
* [https://github.com/movidius/ncsdk/releases/tag/v1.12.00.01 the 1.12 release]
+
* Download tar.gz source - the file name is ncsdk-1.12.00.01.tar.gz
+
  
 
= Install =
 
= Install =
  
 
  $ mv workspace/ workspace_2_04
 
 
 
  $ mkdir -p ~/workspace
 
 
 
 
   $ cd ~/workspace
 
   $ cd ~/workspace
 
    
 
    
   $ mv ~/Downloads/ncsdk-1.12.00.01.tar.gz .
+
   $ mv ~/Downloads/ncsdk-1.12.01.01.tar.gz .
 
+
  $ tar xzf ncsdk-1.12.00.01.tar.gz
+
 
+
  $ mv ncsdk-1.12.00.01 ncsdk
+
 
   
 
   
   $ cd ncsdk
+
   $ tar xzf ncsdk-1.12.01.01.tar.gz
 
+
NOTE:  1/28/19 failed this time. Go with 2.08 with Realsense2 version. '''Abort this path'''.
+
  $ cd ncsdk-1.12.01.01/
* [https://stackoverflow.com/questions/47955397/pip3-error-namespacepath-object-has-no-attribute-sort pip3 error] I may have broken something with these fixes. I'm getting System program problem detected- pip3 tensorflow no attribut sort
+
* Google search
+
 
   
 
   
 
   $ make install
 
   $ make install
+
 
   $ cat /opt/movidius/version.txt  
+
   $ cat /opt/movidius/version.txt
       1.12.00.01
+
       1.12.01.01
 +
 
  
[[NCS 1.12 Install Log]]
+
* [[NCSDK 1.12.01.01 Install Log]]
 
+
== apport Work Around ==
+
 
+
Got rid of continues report error messages.
+
 
+
* https://www.linuxbabe.com/ubuntu/disable-apport-error-reporting-ubuntu-16-04-lts
+
 
+
  $ pwd
+
      /etc/default
+
+
  t$ diff apport.org apport
+
      4c4,5
+
      < enabled=1
+
      ---
+
      > enabled=0
+
      >
+
  
= Examples =
+
= USB Device Mapping =
  
Plug in Movidius NCS
+
Plug in the Movidius NCS
  
   $ lsusb
+
   $ lsusb  
 
       Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 
       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 005: ID 04f3:2494 Elan Microelectronics Corp.  
Line 87: Line 59:
 
Movidius is the 03e7:2150 device
 
Movidius is the 03e7:2150 device
  
  $ pwd
+
= Signs of Life =
      /home/eepp/workspace/ncsdk
+
 
+
  $ make examples
+
  
 +
== Python Test ==
  
[[NCS 1.12 Examples Install Log]]
+
   $ cd ~/ncsdk-1.12.01.01/workspace/examples/apps/hello_ncs_py/
 
+
    
   $ df
+
      Filesystem    1K-blocks    Used Available Use% Mounted on
+
      ...
+
      /dev/sda7      92535808 15795244  72016904  18% /
+
 
+
= Tests =
+
 
+
== Python ==
+
 
+
  $ cd ~/workspace/ncsdk/examples/apps/hello_ncs_py/
+
+
   $ python --version
+
      Python 2.7.12
+
+
 
   $ python hello_ncs.py  
 
   $ python hello_ncs.py  
 
       Hello NCS! Device opened normally.
 
       Hello NCS! Device opened normally.
Line 114: Line 70:
 
       NCS device working.
 
       NCS device working.
  
== C++ ==
+
== C++ Test ==
  
 
   $ cd ../hello_ncs_cpp
 
   $ cd ../hello_ncs_cpp
 
+
 
   $ make run
 
   $ make run
 
+
 
       making hello_ncs_cpp
 
       making hello_ncs_cpp
 
       g++ cpp/hello_ncs.cpp -o cpp/hello_ncs_cpp -lmvnc
 
       g++ cpp/hello_ncs.cpp -o cpp/hello_ncs_cpp -lmvnc
Line 129: Line 85:
 
       Goodbye NCS!  Device Closed normally.
 
       Goodbye NCS!  Device Closed normally.
 
       NCS device working.
 
       NCS device working.
 +
  
 
== Tensorflow Example ==
 
== Tensorflow Example ==
  
   $ cd ~/workspace/ncsdk/examples/tensorflow/inception_v3
+
   $ cd ~/workspace/ncsdk-1.12.01.01/examples/tensorflow/inception_v3
 
+
 
   $ make all
 
   $ make all
  
[[NCS 1.12 Tensorflow Examples Make Log]]
+
* [[NCS 1.12.01.01 Tensorflow Examples Make Log]]

Latest revision as of 22:27, 5 February 2019

Background

Clay Hofrock told me that NCS SDK 1.* is compatible with ROS Kinetic. It works with Python 2. (6/16/18) This gets around the problem with NCS SDK 2.* needing Python 3.0 which is not compatible with Kinetic's cv2.so library.

Reference

Moved Release v2 Out of the Way

Saved the v2 release in an archive so I could recover it if this path didn't not work.

 $ sudo mkdir /opt.archive

 $ cd /opt

 $ sudo mv movidius/ ../opt.archive/

 $ cd ~/workspace

 $ mv ncsdk-1.12 ncsdk-1.12-190128

Download Release 1.12.01.01

Install

 $ cd ~/workspace
 
 $ mv ~/Downloads/ncsdk-1.12.01.01.tar.gz .

 $ tar xzf ncsdk-1.12.01.01.tar.gz

 $ cd ncsdk-1.12.01.01/

 $ make install
 
 $ cat /opt/movidius/version.txt
     1.12.01.01
 

USB Device Mapping

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

Signs of Life

Python Test

 $ cd ~/ncsdk-1.12.01.01/workspace/examples/apps/hello_ncs_py/
 
 $ python hello_ncs.py 
     Hello NCS! Device opened normally.
     Goodbye NCS! Device closed normally.
     NCS device working.

C++ Test

 $ 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-1.12.01.01/examples/tensorflow/inception_v3

 $ make all