Transfer the model to the Pi

Connect your Pi to a power source.

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

The command will look like the following, replacing the numbers after the @ sign with the IP address of your Pi:

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]).

Create a new folder in the home directory and name it model by using the following commands:

cd ~
mkdir model

Open the FTP connection and use it to copy saved_model.tflite and signature.json from your exported Lobe model into the model directory on the Pi.

Follow the same procedure for FileZilla.

Test your model

Use the commands below to download and run the basic Lobe classifier on your Pi:

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

Make sure that all the Rock, Paper, Scissors hand gestures are working as expected. It's best to keep the camera background consistent with the images you used for training.

This guide was first published on Mar 31, 2021. It was last updated on 2021-03-30 15:36:50 -0400.

This page (Test your Model on the Pi) was last updated on Oct 08, 2021.

Text editor powered by tinymce.