Before you begin
Episode 1 introduced gesture recognition using a Raspberry Pi explained some of the fundamental concepts of machine learning. However, you can continue following this guide if you want to skip Episode 1.
This guide assumes some familiarity with Keras and neural network training. This Keras getting started guide gives an overview of the Keras Sequential model.
For a Raspian base install the only dependency that you need to add is TensorFlow from Google’s binaries. First, install some TensorFlow prerequisites by entering the following in the command line:
sudo apt-get install libblas-dev liblapack-dev python-dev libatlas-base-dev gfortran python-setuptools python-h5py
The exact URL of the current TensorFlow build varies between versions. Go to the TensorFlow Raspberry Pi 3 build page to find the current link:
sudo pip2 install <insert .whl link from the build page here>
Install Arm's training scripts
Download or clone our ML examples repository from GitHub by entering the following on the command line:
git clone https://github.com/ARM-software/ML-examples.git
These scripts are designed to be easy to understand and modify. Feel free to explore and hack them with your own changes.