Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6404 Discussions

Steps for installtion for Raspberry Pi 3 new sdk

idata
Employee
5,078 Views

Can any one please guide me in installing/setting up movidius for raspberry pi 3 jessie? Existing tutorials are based on earlier sdk.

 

Thank you
0 Kudos
69 Replies
idata
Employee
1,896 Views

There is a GREAT video posted on YouTube for this. Look up Movidius Nerual Compute Pi stick or..

 

https://www.youtube.com/watch?v=f39NFuZAj6s

0 Kudos
idata
Employee
1,896 Views

@chicagobob123 there is no ncapi folder in the latest release in github.

 

https://github.com/movidius/ncsdk

 

Am I missing something?
0 Kudos
idata
Employee
1,896 Views

I can confirm what gauravmoon is saying above. there is no such "pi_jessie" or "pi_*" anything in a solid Ubuntu 16.04LTS on x86 under /opt/movidius nor in the ~/workspace/ncsdk… what are we missing here? Thanks Mark D.

0 Kudos
idata
Employee
1,896 Views

@mdouglas_95136, @gauravmoon

 

The video linked was for pre 1.09.00 releases of the ncsdk.

 

For 1.09 and above you can install the ncsdk on the rpi the same as you would on any ubuntu machine with "make install" after cloning
0 Kudos
idata
Employee
1,896 Views

Wait Im confused the first videos i watched say not to install the sdk direct on the pi

0 Kudos
idata
Employee
1,896 Views

@gmonk63

 

You are right. For the Pre-1.09.00 releases of the ncsdk you could not install it directly on the rpi. But starting with 1.09.00 the installation was simplified to be the same for all platforms. So for 1.09.00 and after you can install on the rpi directly following the instructions on the github here:

 

https://movidius.github.io/ncsdk/install.html

 

The 1.09.00 getting started video is here and applies to all platforms:

 

https://www.youtube.com/watch?v=fESFVNcQVVA

 

Also, as an added bonus, you can clone the ncappzoo directly on the rpi as well:

 

http://www.github.com/movidius/ncappzoo
0 Kudos
idata
Employee
1,896 Views

@neal_at_intel

 

yeah this is not installing on my ARMv8 (not rpi) + Ubuntu 16.04 LTS root filesystem.

 

I won't hijack this thread… I need to ask you about how I should proceed with my use-case in another thread you will see me mention you.

 

Thanks!

 

Mark
0 Kudos
idata
Employee
1,896 Views

I successfully assembled the Raspberry pi and connected with Movidius stick, camera, keyboard/mouse and tv monitor. After the downloading the latest version of ncsdk, I run the ‘make install’ command. It took whole night but still the installation has not completed. I tried with two different SD card (64 gb) and ended with same issue. Since I wanted to use for demo purpose, I installed the full SDK in SD card. (I know there is API only option but it require additional laptop, so I did not opt it.). Please suggest me the solution.

 

https://ncsforum.movidius.com/discussion/356/steps-for-installtion-for-raspberry-pi-3-new-sdk

0 Kudos
idata
Employee
1,896 Views

No issue installing on the Raspberry Pi 3 using SDK 1.10.

 

run.py reported 385ms using an inception_v3_2016_08_28 checkpoint.

 

The installation was as @neal_at_intel mentioned above, simply make install.

 

Don't know why the full SDK now, was pretty neat to install only the APIs.

 

Some notes on my installation

 

Target: Raspberry Pi 3 Model B

 

SD-Card: 32GB SD-HC (60MB/s write, 90MB/s read) --> _You really want to use a really fast SD card here_

 

Environment: Python3 virtual environment (python3 -m venv )

 

Note0: Tensorflow is not supported on RPi3, so the installation will not install tensorflow for you. If you need preprocessing using tf like me, you'll have to do it on a supported OS.

 

Note1: If you have a previous installed NCS under /opt/movidius, better to remove this first or the installation may failed at the end.

 

Note2: ncs-check no longer installed, you have to go into NCSDK-1.10.00.02/tests/api-check and do a make, then copy over to /usr/local/bin

 

Note3: Have afternoon tea, fika, coffee, short nap, etc.. It will take some time. Having a really fast SD card does help, though.

 

Some results

 

The inception_v3_2016_08.ckpt was converted into protobuf binary, then the graph was compiled using mvNCCompile with option -s12, all done on a computer (Ubuntu 16.04LTS on VirtualBox on Mac), then transferred to the RPi3. (You don't have to do this if you just want to use the stock examples, just cd to the examples inside your workspace and do a make run)

 

Host konami below is the Raspberry Pi 3

 

(opencv33) edwios@konami:~/ml/ncsdk/examples/tensorflow/inception_v3_2016_08 $ make run test -f output/inception_v3_2016_08.pb || (./ckpt2pb.py) test -f graph || mvNCCompile -s 12 output/inception_v3_2016_08.pb -in=import/input -on=import/multi-predictions ./run.py Number of categories: 6012 Number of classes: 19868 Start download to NCS... 385.234 ms used ******************************************************************************* inception-v3 on NCS ******************************************************************************* Number of classes: 19868 3473 /m/04rky Mammal 0.92822 1261 /m/01yrx Cat 0.91406 5723 /m/0jbk Animal 0.90918 4605 /m/09686 Vertebrate 0.89844 3981 /m/068hy Pet 0.88721 841 /m/01l7qd Whiskers 0.82568 2430 /m/0307l Felidae 0.78809 4349 /m/07k6w8 Small to medium-sized cats 0.77393 5643 /m/0hjzp Kitten 0.40894 ******************************************************************************* Finished
0 Kudos
idata
Employee
1,896 Views

Hey @edwios thanks for that.

 

Just to verify, do we not run make examples on the RPi? Since I think that's crashing my Pi.

 

All you run is the SDK and then you make run to transfer over to the Movidius on the RPi?

 

Can you transfer to the Movidius on the development machine and then plug it in on the RPi and run the API?

 

Just to verify, is there a new version of this video? Is it now outdated?

 

https://www.youtube.com/watch?v=f39NFuZAj6s

0 Kudos
idata
Employee
1,896 Views

Hi @edwios,

 

Just FYI, there is a semi-manual way to install only the API on Raspberry Pi (or on any platform.) The instructions to do that are here: https://movidius.github.io/blog/ncs-apps-on-rpi/

 

@karl It is possible to run make examples on rpi. But note that right now it will build opencv from source as part of the installation and this can be a very long process on Raspberry Pi.

0 Kudos
idata
Employee
1,896 Views

So it's a long process, but it also never finishes. From what I can tell, at least.

 

Either way, thanks.

 

Do you know if it works on RPi Stretch, @neal_at_intel ? Or should we be only using Jessie? Also, thanks for the link. How do you install API only mode? It mentions it as one of the two options, but only goes into steps for option 1. (Full SDK)

0 Kudos
idata
Employee
1,896 Views

@karl

 

When i last ran the make examples on rpi it ran for over 6 hours but did finally finish on my RPi 3. As of the 1.09 version of the ncsdk RPi Stretch is required. I don't think it will install on Jessie.

 

Also for the link, I can see how its not entirely clear, but the steps there are actually for API only. For the full installation you clone and make install at the top level directory. The key difference is for the API only installation is:

 

cd ~/workspace/ncsdk/api/src make sudo make install

 

Which builds the API from source and then installs only the API by running 'sudo make install' from the api/src directory.

 

Disclaimer…I haven't done the API only installation myself but I believe that's how it is meant to work.

0 Kudos
idata
Employee
1,896 Views

@neal_at_intel, @karl, here's a blog post about installing NCSDK in API-only mode. I have been able to run this on the following platforms, let us know if you try it on a different platform.

 

     

  1. RPI Zero (armv6l) running Raspbian Stretch Lite (32-bit kernel & OS)
  2.  

  3. RPI3 Model B (armv7l) running Raspbian Stretch Desktop & Lite (32-bit kernel & OS)
  4.  

  5. DargonBoard 410C (aarch64/armv8) running Debian Stretch (64-bit kernel & OS)
  6.  

0 Kudos
idata
Employee
1,896 Views

Thanks @neal_at_intel and @AshwinVijayakumar. I did that "reading" thing and am working through it now.

 

@AshwinVijayakumar which blog post?

0 Kudos
idata
Employee
1,896 Views

@karl, sorry about that, it probably makes sense I list the blog link. :smile:

 

Here's it is - https://movidius.github.io/blog/

0 Kudos
idata
Employee
1,896 Views

Thanks!

 

When running through the blog, various issues during the setup scripts. It only seems to work on a fresh install of Ubuntu 16.04.

 

For this blog specifically:

 

https://movidius.github.io/blog/ncs-image-classifier/

 

Scripts need to be added to build the caffe models used in the Appzoo.

 

I also keep getting the error that there is no plugin for imshow:

 

python3 image-classifier.py /usr/local/lib/python3.5/dist-packages/skimage/transform/_warps.py:84: UserWarning: The default mode, 'constant', will be changed to 'reflect' in skimage 0.15. warn("The default mode, 'constant', will be changed to 'reflect' in " ------- predictions -------- prediction 0 is n02123159 tiger cat prediction 1 is n02123045 tabby, tabby cat prediction 2 is n02124075 Egyptian cat prediction 3 is n02127052 lynx, catamount Traceback (most recent call last): File "image-classifier.py", line 79, in <module> skimage.io.imshow( IMAGE_PATH ) File "/usr/local/lib/python3.5/dist-packages/skimage/io/_io.py", line 156, in imshow return call_plugin('imshow', arr, plugin=plugin, **plugin_args) File "/usr/local/lib/python3.5/dist-packages/skimage/io/manage_plugins.py", line 198, in call_plugin raise RuntimeError(msg % kind) RuntimeError: No suitable plugin registered for imshow. You may load I/O plugins with the `skimage.io.use_plugin` command. A list of all available plugins are shown in the `skimage.io` docstring.
0 Kudos
idata
Employee
1,895 Views

@karl, thanks for pointing out the issues with https://movidius.github.io/blog/ncs-image-classifier/. I presume they were mostly related to image-classifier.py not finding graph file and/or synset_words.txt. I updated the blog to call make run which downloads and builds all dependent files.

 

As for the RuntimeError: No suitable plugin registered for imshow., I noticed this issue on a fresh Ubuntu install. This is because skimage couldn't figure out which of the many supported plugins it should use to display the inferred image. This can be easily solved by forcing skimage to use a specific plugin, before calling imshow. Like so:

 

skimage.io.imshow( IMAGE_PATH ) skimage.io.use_plugin( 'matplotlib' ) skimage.io.show( )

 

Try it out and let me know if it does not work for you. You can read more about this skimage related issue over here - http://scikit-image.org/docs/dev/api/skimage.io.html#skimage.io.use_plugin
0 Kudos
idata
Employee
1,896 Views

The issue is that I needed python3-tk installed in order to display. That cleared it up.

 

apt-get install python3-tk

 

Just specifying the plug-in didn't work as it wasn't installed.

 

Thanks!

0 Kudos
idata
Employee
1,638 Views

make install has crashed my pi3 twice now. Any chance someone can upload a working SD card image?

0 Kudos
Reply