Difference: Hello_worldArduinoVersion (1 vs. 2)

Revision 22023-12-18 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="TheHelloWorld"
Added:
>
>

The Arduino hello world example

 
Changed:
<
<

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
Added:
>
>
  • ... and even some older version of magic wand, which is not available elsewhere
tflite_examples_arduino.png

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

Changed:
<
<
<--/commentPlugin-->
>
>

<--/commentPlugin-->
 
Changed:
<
<
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"

Revision 12023-12-18 - UliRaich

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="TheHelloWorld"

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

  • hello_world
  • wake word detection
  • person detection
-- Uli Raich - 2023-12-18

Comments

<--/commentPlugin-->

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"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback