TensorflowLite Arduino IDE 2.3.4

Hey guys, I am trying to install TensorflowLite on Arduino IDE. I want to download from the link below, but however i try to extract+copy or add .zip file, they don't seem to work. Can anyone help me on this?

Here's the link: tensorflow/tflite-micro: Infrastructure to enable deployment of ML models to low-power resource-constrained embedded targets (including microcontrollers and digital signal processors).

Hi @anhkhoi041. That is not an Arduino library, so it is normal and expected that it will fail to install.

The Arduino library is here:

The first thing you should take note of is this statement in the documentation:

https://github.com/tensorflow/tflite-micro-arduino-examples#compatibility

This library is designed for the Arduino Nano 33 BLE Sense board. The framework code for running machine learning models should be compatible with most Arm Cortex M-based boards, such as the Raspberry Pi Pico , but the code to access peripherals like microphones, cameras, and accelerometers is specific to the Nano 33 BLE Sense .

So if you have a Nano 33 BLE Sense board, the library should be reasonably easy to use. But if you have any other board, you must expect to have a very challenging time using the library. In this case, you might want to look around for a library that explicitly supports the board you are using.

Assuming you do want to use the library, the next thing to note is that the library developers were not kind enough to add it to Library Manager to make the installation simple, so you will need to manually install the library. I'll provide instructions you can follow to do that:

  1. Click the following link to open the library's GitHub repository homepage in your web browser:
    https://github.com/tensorflow/tflite-micro-arduino-examples
  2. Click the "Code ▾" button you see on that page.
  3. Select Download ZIP from the menu.
    A download of the ZIP file of the library will start.
  4. Wait for the download to finish.
  5. Select Sketch > Include library > Add .ZIP Library from the Arduino IDE menus.
    The "Select the zip file containing the library you'd like to add" dialog will open.
  6. Select the downloaded file from the dialog.
  7. Click the "Open" button.
    The dialog will close.
  8. Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:

    ⓘ Successfully installed library from ...

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.