Here I show how to use the Movidius Neural Compute Stick with the Nvidia TK1 Board.
Most of us are ready to throw the Jetson TK1 into the trash. It doesn't really do much. But if we update the software to Ubuntu 16.04 it might allow us to use the Movidius Neural Compute Stick with it's USB 3.0 port.
Most of us are ready to throw the Jetson TK1 into the trash. It doesn't really do much. But if we update the software to Ubuntu 16.04 it might allow us to use the Movidius Neural Compute Stick with it's USB 3.0 port.
First up, after updating to 16.04, I tried to install the standard NCSDK
Get Started:
mkdir -p ~/workspace
cd ~/workspace
git clone https://github.com/movidius/ncsdk.git
cd ~/workspace/ncsdk
make install
Make the Examples:
cd ~/workspace/ncsdk
make examples
Test it's Working:
cd /home/ubuntu/workspace/ncsdk/examples/apps/hello_ncs_py
python3 hello_ncs.py
Should Give:
"Hello NCS! Device opened normally.
Goodbye NCS! Device closed normally.
NCS device working."
However It doesn't work like this for ARMv7 devices.
We need to follow the Raspberry Pi method of installing Neural Compute stick. This means that we cannot install:
1) Full NCSDK software
2) Tensorflow
So before making examples, we have to edit ncsdk.conf file. Find it's location, and open it in text editor.
Original:
MAKE_PROCS=1 | |
SETUPDIR=/opt/movidius | |
VERBOSE=yes | |
SYSTEM_INSTALL=yes | |
CAFFE_FLAVOR=ssd | |
CAFFE_USE_CUDA=no | |
INSTALL_TENSORFLOW=yes | |
INSTALL_TOOLKIT=yes |
New Edited:
MAKE_PROCS=1 | |
SETUPDIR=/opt/movidius | |
VERBOSE=yes | |
SYSTEM_INSTALL=yes | |
CAFFE_FLAVOR=ssd | |
CAFFE_USE_CUDA=no | |
INSTALL_TENSORFLOW=no | |
INSTALL_TOOLKIT=no |
Now rerun:
This allows us to now re run the test to see if it is working:
cd ~/workspace/ncsdk
make examples
cd /home/ubuntu/workspace/ncsdk/examples/apps/hello_ncs_py
python3 hello_ncs.py
We should have a good result now! It is connected :)
This process should be the same also for the Raspberry pi 2/3 using the latest Raspbian software which is equivalent to Ubuntu 16.04
Now how to run examples?
Next Article I show how to run example code on the TK1+Neural Compute Stick in a clever way.
Tegra Hardware Specs on 16.04
System Information when running Ai Python Code on the TK1/Neural Compute Stick. It runs much much much more smoothly than the Raspberry pi or the former TK1 14.04 board, and is all suddenly back in the race again without spending anything.
How to beat the tech AI spending race...
No comments:
Post a Comment