|
META TOPICPARENT |
name="TinyML" |
The TinyML examples written in C++ |
|
- 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 |
|
- ... and even some older version of magic wand, which is not available elsewhere
 |
|
> > | The Hello World test programs
Three test programs are available:
- hello_world_test.cc
- evaluate.py
- evaluate_test.py
These programs are built using the bazel build tool. In order tto build hello_world_test.cc, got to the base directory of TensorFlow Lite Micro directory and enter the commands. First the hello_world_test binary must be built from its source:
before the program can be run:
For a detailed analysis of the test program please set analysis cc test |
| The Hello World application with esp-idf
Let's start with the hello_world example. This example uses a pre-built model that has gone through the training process and it has been quantized to reduce its size such that it can be loaded into the small micro-controller memory. Building, training and quantization is described at https://github.com/tensorflow/tflite-micro/tree/main/tensorflow/lite/micro/examples/hello_world . |
|
META FILEATTACHMENT |
attachment="results.png" attr="" comment="" date="1693664894" name="results.png" path="results.png" size="24817" user="UliRaich" version="1" |
META FILEATTACHMENT |
attachment="tflite_examples_arduino.png" attr="" comment="" date="1694091942" name="tflite_examples_arduino.png" path="tflite_examples_arduino.png" size="183028" user="UliRaich" version="1" |
|
|
> > |
META FILEATTACHMENT |
attachment="hello_world_test_build.png" attr="" comment="" date="1694158216" name="hello_world_test_build.png" path="hello_world_test_build.png" size="53463" user="UliRaich" version="1" |
META FILEATTACHMENT |
attachment="hello_world_test_run.png" attr="" comment="" date="1694158217" name="hello_world_test_run.png" path="hello_world_test_run.png" size="156067" user="UliRaich" version="1" |
|