← 开源
espressif

esp-tflite-micro

TensorFlow Lite Micro for Espressif Chipsets

InfrastructureInference service optimizationC++
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
712
Star
150
Fork
+0
本周
14
贡献者
创建于 2021-10-25 · 更新于 2026-10-14 · 今日第 14678 名
主要开发者
vikramdattuShardulNalegaveshivani-tipnis

espressif/esp-tflite-micro 排名第 14,678,有 712 个星标。

同类别比较

espressif/esp-tflite-micro 排名第 14,678,此处有 8 个同类条目;openclaw/nix-openclaw 排名第 14,655。

同类别比较
名称排名指标
peters/horizon14,618
语言:
Rust
星标数:
717
分叉数:
30
简介:
GPU-accelerated terminal board that puts all your sessions on an infinite canvas
Meesho/BharatMLStack14,631
语言:
Go
星标数:
715
分叉数:
85
简介:
BharatMLStack is an open-source, end-to-end machine learning infrastructure stack built at Meesho to support real-time and batch ML workloads at Bharat scale
oracle/graphpipe14,641
语言:
Makefile
星标数:
715
分叉数:
102
简介:
Machine Learning Model Deployment Made Simple
openclaw/nix-openclaw14,655
语言:
Nix
星标数:
714
分叉数:
231
简介:
Packages OpenClaw for nix.
hollance/MobileNet-CoreML14,718
语言:
Swift
星标数:
709
分叉数:
100
简介:
The MobileNet neural network using Apple's new CoreML framework
Avarok-Cybersecurity/atlas14,725
语言:
Rust
星标数:
708
分叉数:
106
简介:
Pure Rust Inference Engine
Picovoice/picovoice14,731
语言:
Python
星标数:
708
分叉数:
122
简介:
On-device voice assistant platform powered by deep learning
tensorflow/tfjs-converter14,746
语言:
TypeScript
星标数:
707
分叉数:
140
简介:
Convert TensorFlow SavedModel and Keras models to TensorFlow.js
关键参数与规格
关键参数与规格
参数值
语言C++
类别Infrastructure
子类别Inference service optimization
关键词IoT
星标数712
分叉数150
贡献者14
创建日期2021-10-25
更新日期2026-10-14
1 天星标数0
7 天星标数0
排名14,678
上次排名6,581
排名变化-8,097
7 天星标排名14,597
上次 7 天星标排名14,606
7 天星标排名变化9
总星标排名14,697
上次总星标排名14,663
总星标排名变化-34
国家China
README 摘录

TensorFlow Lite Micro for Espressif Chipsets As per TFLite Micro guidelines for vendor support, this repository has the component and the examples needed to use Tensorflow Lite Micro on Espressif Chipsets (e. The base repo on which this is based can be found here. The next steps assume that this installation is successful and the IDF environment variables are set. Specifically, the environment variable is set the and Xtensa-esp32 tools (e. , ) are in Using the component Run the following

command in your ESP-IDF project to install this component: Building the example To get the example, run the following command: Note: If you have cloned the repo, the examples come as the part of the clone. Simply go to the example directory ( ) and build the example. Available examples are: hello_world micro_speech person_detection Set the IDF_TARGET To build the example, run: Load and run the example To flash (replace with the device serial port): Monitor the

serial output: Use to exit. The previous two commands can be combined: Please follow example READMEs for more details. ESP-NN Integration ESP-NN contains optimized kernel implementations for kernels used in TFLite Micro. The library is integrated with this repo and gets compiled as a part of every example. Additional information along with performance numbers can be found here. txt: Detailed kernelwise performance can be found here. Sync to latest TFLite Micro upstream As per the upstream repository policy

, the tflite-lib is copied into the components directory in this repository. We keep updating this to the latest upstream version from time to time. Should you, in any case, wish to update it locally, you may run the script. Contributing If you find an issue in these examples, or wish to submit an enhancement request, please use the Issues section on Github. For ESP-IDF related issues please use esp-idf repo. For TensorFlow related information use tflite-micro

repo. License This component and the examples are provided under Apache 2. 0 license, see LICENSE file for details. TensorFlow library code and third_party code contains their own license specified under respective repos.

常见问题

记录了多少星标和分叉?

espressif/esp-tflite-micro 有 712 个星标和 150 个分叉。

仓库排名是多少?

espressif/esp-tflite-micro 排名第 14,678。

记录的语言和类别是什么?

espressif/esp-tflite-micro 有 712 个星标,语言为 C++,类别为 Infrastructure。

哪个仓库排名最接近?

espressif/esp-tflite-micro 与 openclaw/nix-openclaw 比较,后者排名第 14,655,有 714 个星标。

README

TensorFlow Lite Micro for Espressif Chipsets

  • As per TFLite Micro guidelines for vendor support, this repository has the esp-tflite-micro component and the examples needed to use Tensorflow Lite Micro on Espressif Chipsets (e.g., ESP32-P4) using ESP-IDF platform.
  • The base repo on which this is based can be found here.

Build Status

Build Type Status
Examples Build

Quick Flash (Board-Specific)

Board Example Flash
ESP32-S3-EYE Person Detection Flash Now

Try All Examples

How to Install

ESP-IDF Support Policy

We keep track with the ESP-IDF's support period policy mentioned here.

ESP-IDF version Supported
release/v6.0 ✅
release/v5.5 ✅
release/v5.4 ✅
release/v5.3 ✅
release/v5.2 ✅ (not covered by CI)
release/v5.1 ✅
release/v5.0 and below ❌ (end of life)

Install the ESP IDF

Follow the instructions of the ESP-IDF get started guide to setup the toolchain and the ESP-IDF itself.

The next steps assume that this installation is successful and the IDF environment variables are set. Specifically,

  • the IDF_PATH environment variable is set
  • the idf.py and Xtensa-esp32 tools (e.g., xtensa-esp32-elf-gcc) are in $PATH

Using the component

Run the following command in your ESP-IDF project to install this component:

idf.py add-dependency "esp-tflite-micro"

Building the example

To get the example, run the following command:

idf.py create-project-from-example "esp-tflite-micro:"

Note:

  • If you have cloned the repo, the examples come as the part of the clone. Simply go to the example directory (examples/) and build the example.

Available examples are:

  • hello_world
  • micro_speech
  • person_detection

Set the IDF_TARGET

idf.py set-target esp32p4

To build the example, run:

idf.py build

Load and run the example

To flash (replace /dev/ttyUSB0 with the device serial port):

idf.py --port /dev/ttyUSB0 flash

Monitor the serial output:

idf.py --port /dev/ttyUSB0 monitor

Use Ctrl+] to exit.

The previous two commands can be combined:

idf.py --port /dev/ttyUSB0 flash monitor
  • Please follow example READMEs for more details.

ESP-NN Integration

ESP-NN contains optimized kernel implementations for kernels used in TFLite Micro. The library is integrated with this repo and gets compiled as a part of every example. Additional information along with performance numbers can be found here.

Performance Comparison

A quick summary of ESP-NN optimisations, measured on various chipsets:

Target TFLite Micro Example without ESP-NN with ESP-NN CPU Freq
ESP32-P4 Person Detection 1395ms 73ms 360MHz
ESP32-S3 Person Detection 2300ms 54ms 240MHz
ESP32 Person Detection 4084ms 380ms 240MHz
ESP32-C3 Person Detection 3355ms 426ms 160MHz

Note:

  • The above is time taken for execution of the invoke() call
  • Internal memory used
  • ESP32-P4 optimisation is work in progress
  • Without ESP-NN case is when esp-nn is completely disabled by removing below flag from CMakeLists.txt:
      # enable ESP-NN optimizations by Espressif
      target_compile_options(${COMPONENT_LIB} PRIVATE -DESP_NN)
    

Detailed kernelwise performance can be found here.

Sync to latest TFLite Micro upstream

As per the upstream repository policy, the tflite-lib is copied into the components directory in this repository. We keep updating this to the latest upstream version from time to time. Should you, in any case, wish to update it locally, you may run the scripts/sync_from_tflite_micro.sh script.

Contributing

  • If you find an issue in these examples, or wish to submit an enhancement request, please use the Issues section on Github.
  • For ESP-IDF related issues please use esp-idf repo.
  • For TensorFlow related information use tflite-micro repo.

License

This component and the examples are provided under Apache 2.0 license, see LICENSE file for details.

TensorFlow library code and third_party code contains their own license specified under respective repos.

排名相邻
同类项目