|
|
5 лет назад | |
|---|---|---|
| docs | 5 лет назад | |
| examples | 5 лет назад | |
| tensorflow | 5 лет назад | |
| third_party | 5 лет назад | |
| .gitignore | 5 лет назад | |
| LICENSE | 5 лет назад | |
| README.md | 5 лет назад | |
| README_en.md | 5 лет назад | |
| SConscript | 5 лет назад |
中文版 | English Version
Tensorflow Lite Micro软件包(简称TFLu)是针对RT-Thread实时操作系统移植的嵌入式推理框架, 主要解决在资源, 功耗, 性能等资源受限的嵌入式系统中, 部署基于Tensorflow Lite框架实现深度学习模型任务
目前计划进行调优的平台 :
[x] 树莓派4 ( Cortex A72内核, 64位, gcc-arm-8.3交叉工具链 ) : RAM 28K, Flash 690K 仓库链接: https://github.com/QingChuanWS/raspi4-tfliteMicro
[x] ART-Pi (STM32H750, 32位, gcc-arm-none-eabi-9-2019 ) : RAM 25K, Flash 542K
[ ] Nucleo-STM32L496(STM32L496, 32位, gcc-arm-none-eabi-9-2019)
[ ] Kendryte K210(K210, 64位, riscv架构)
| 名称 | 说明 |
|---|---|
| docs | 文档目录 |
| examples | Tensorflow Lite Micro demo |
| third_party | Tensorflow Lite Micro 依赖的第三方库 |
| tensorflow | Tensorflow Lite Micro 推理框架 |
Tensorflow Lite Micro package 遵循 LGPLv2.1 许可,详见 LICENSE 文件。
RT-Thread 3.0+
使用 Tensorflow Lite Micro package 需要在 RT-Thread 的包管理器中选择它,具体路径如下:
RT-Thread online packages
miscellaneous packages --->
[*] Tensorflow Lite Micro: a lightweight deep learning end-test inference framework for RT-Thread operating system.
然后让 RT-Thread 的包管理器自动更新,或者使用 pkgs --update 命令更新包到 BSP 中。
在成功下载 Tensorflow Lite Micro package 之后:
首先通过RT-Thread 的 env 工具中 menuconfig 进行功能配置, 其中在 menuconfig 中的配置选项为:
RT-Thread online packages
miscellaneous packages --->
[*] Tensorflow Lite Micro: a lightweight deep learning end-test inference framework for RT-Thread operating system.
Version(latest) --->
Select Offical Example(Enable Tensorflow Lite Micro aduio example) --->
Select Tensorflow Lite Operations Type (Using Tensorflow Lite reference operations) --->
其中, Select Offical Example 中有两个选项:
( ) Enable Tensorflow Lite Micro audio example
(X) No Tensorflow Lite Micro example
注 : audio example 是执行官方携带的语音示例, No example 则是不集成 example 文件, 只使用 Tensorflow Lite Micro 标准框架. (注:默认不开启语音实例)
Select Tensorflow Lite Operations Type 中有两个选项:
( ) Using Tensorflow Lite reference operations
(X) Using Tensorflow Lite CMSIS NN operations
reference operation 对应的是 TFLMicro 的通用算子库,其中的各类算子实现与硬件平台隔离,具备良好的可移植性,但是运行速度较慢。
CMSIS NN operations 对应的是 TFLMicro 基于CMSIS-NN 库进行二次开发的算子库,对ARM Cortex M4,M7 有大幅加速. 使用的有关注意事项请参照第四部分!!
注意:
Tensorflow Lite Micro 框架中的模块较多,使用之前请先参考 introduction.md , 通过 user-guide.md 来了解基本使用流程流程。
API 手册可以访问此链接, 其中提供了目前支持算子的情况
更多文档位于 docs 下,使用前 务必查看
Using Tensorflow Lite CMSIS NN operations选项: