Skip to content

SImple example getting TensorFlow Lite up and running on the ESP32 with Platform.io

License

Notifications You must be signed in to change notification settings

atomic14/tensorflow-lite-esp32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ko-fi

TensorFlow-Lite and Platform.io

This repo demonstrates how to use a TensorFlow model on the ESP32 using Platform.io.

There's a walkthrough video here: https://youtu.be/kZdIO82059E

Demo Video

Setup

To train the model you'll need a python environment. Make sure you have python 3 installed on your system:

python3 --version

Then run the following command to create a virtual python environment.

python3 -m venv venv

Activate the environment using:

. ./venv/bin/activate

And install the dependencies using:

pip install -r requirements.txt

Training the model

Make sure you have activated the virtual environment using:

. ./venv/bin/activate

Then run:

jupyter notebook .

Open up the train_model notebook and follow the instructions in the notebook.

Once you've trained and converted the model run:

xxd -i converted_model.tflite > firmware/src/model_data.cc

You can then open up the platform.io project in firmware folder and try it out.

About

SImple example getting TensorFlow Lite up and running on the ESP32 with Platform.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published

Languages