|
META TOPICPARENT |
name="TheHelloWorld" |
|
|
> > | The Arduino hello world example |
| |
|
< < | The TinyML examples written in C++
The TinyML examples in C++, ported to the ESP32 can be found at https://github.com/espressif/tflite-micro-esp-examples/tree/master/examples . There you also find the procedures to actually build the programs. In fact there are two methods of building:
- use thee Espressif esp-idf build system
- use the Arduino IDE
- use the MicroPython interface to TensorFlow MicroPython Examples
The test programs allowing to test the model before deploying it to the target processor can be found in the TensorFlow Lite Micro repository .
Arduino
For the Arduino SDK (Software Development Kit) you can install the TensorFlowLite_ESP32 library, which does not only contain the TensforFlowLite library but also the examples |
> > | For the Arduino SDK (Software Development Kit) you can install the TensorFlow_ESP32 library, which does not only contain the TensorFlowLite-Micro (tflm) library but also the examples |
|
- hello_world
- wake word detection
- person detection
|
|
> > |
- ... and even some older version of magic wand, which is not available elsewhere
Unfortunately the Arduino library TensorFlowLite_ESP32 uses an outdated version of the tensorflow lite micro code. I therefore created my own Arduino Library (TFLM_ESP32) with the latest version of tflm and I modified the example code correspondingly.
The Arduino code uses a pre-built model (see hello_world tflite-micro version for the creation and training of the model) in form of a C++ source file and its associated include file (model.cpp and model.h) to get hold of this model. |
| -- Uli Raich - 2023-12-18
Comments |
|
< < | |
> > |
|
| |
|
< < |
META FILEATTACHMENT |
attachment="hello_world_test_include.png" attr="" comment="" date="1702915250" name="hello_world_test_include.png" path="hello_world_test_include.png" size="52455" user="UliRaich" version="1" |
META FILEATTACHMENT |
attachment="hello_world_test_run.png" attr="" comment="" date="1702915257" name="hello_world_test_run.png" path="hello_world_test_run.png" size="156067" user="UliRaich" version="1" |
META FILEATTACHMENT |
attachment="tflite_examples_arduino.png" attr="" comment="" date="1702915264" name="tflite_examples_arduino.png" path="tflite_examples_arduino.png" size="183028" user="UliRaich" version="1" |
|
> > |
META FILEATTACHMENT |
attachment="tflite_examples_arduino.png" attr="" comment="" date="1702915928" name="tflite_examples_arduino.png" path="tflite_examples_arduino.png" size="183028" user="UliRaich" version="1" |
|