All CK components can be found at cKnowledge.io and in one GitHub repository!
This repository contains Collective Knowledge workflows to automate installation and execution of AI applications for Movidius Neural Compute Stick.
It also contains wrappers for YOLO object detection example from this GitHub repository.
The minimal installation requires:
- Python 2.7 or 3.3+ (limitation is mainly due to unitests)
- Git command line client.
You can install CK in your local user space as follows:
$ git clone http://github.com/ctuning/ck
$ export PATH=$PWD/ck/bin:$PATH
$ export PYTHONPATH=$PWD/ck:$PYTHONPATH
You can also install CK via PIP with sudo to avoid setting up environment variables yourself:
$ sudo pip install ck
$ ck pull repo:ck-mvnc
$ ck install package --tags=lib,mvnc
$ ck install package --tags=caffemodel,yolo,tiny
$ ck install package --tags=demo,mvnc,yolo
$ ck detect platform.npu
Sharing info with the community:
$ ck detect platform.npu --share
Note that Movidius Neural Compute Stick can run only on Raspbian Stretch or above. You can download this image for your RPi here.
Since this OS version doesn't have integrated OpenCV support in Python 3, you will need to answer "yes" to build OpenCV when installing MVNC package. It will take a very long time (sometimes more than an hour) but it may be worth it.
$ ck compile program:demo-mvnc-yolo
$ ck run program:demo-mvnc-yolo --cmd_key=classify-objects-in-images
$ ck compile program:demo-mvnc-yolo
$ ck run program:demo-mvnc-yolo --cmd_key=classify-objects-in-webcam
You can change webcam ID with width and height as follows:
$ ck run program:demo-mvnc-yolo --cmd_key=classify-objects-in-webcam --env.SRC=1 --env.WD=800 --env.HT=600
$ ck run program:demo-mvnc-yolo --cmd_key=run-internal-movidius-examples