1. Connect your Pi to a power source and wait for it boot up.

You should see a solid red light and an intermittently flashing green light.

2. Open command prompt on a PC or terminal on Mac/Linux and connect to your Pi using SSH.

Type the following command but replace the bolded number below with IP address of your Pi:

ssh pi@192.168.0.22

Your Pi's IP address is on the screen of the BrainCraft. You can also use the hostname address, e.g. "raspberrypi.local" ([email protected])

3. Download the GitHub folder.

Run the following commands to download the sample code from GitHub:

cd ~
git clone https://github.com/lobe/lobe-adafruit-kit.git

4. Create a new folder called model in the home directory.

Type the following commands:

cd ~
mkdir model

5. Open the FTP connection from the previous step.

6. Copy saved_model.tflite and signature.json from your exported Lobe model to the model directory on the Pi.

7. In terminal on the Pi, run the following script to install Lobe and all it's dependences:

 

cd ~
wget https://raw.githubusercontent.com/lobe/lobe-python/master/scripts/lobe-rpi-install.sh
sudo bash lobe-rpi-install.sh

8. In terminal on the Pi, run the Python program lobe-basic-prediction.py

Type the following commands:

cd ~
cd lobe-adafruit-kit
python3 lobe-basic-prediction.py

This guide was first published on Mar 30, 2021. It was last updated on Sep 16, 2020.

This page (Get Predictions on the Pi) was last updated on Feb 16, 2021.

Text editor powered by tinymce.