|
|
5 лет назад | |
|---|---|---|
| .vscode | 5 лет назад | |
| docs | 5 лет назад | |
| examples | 5 лет назад | |
| fixedpoint | 5 лет назад | |
| flatbuffers | 5 лет назад | |
| ruy | 5 лет назад | |
| tflite | 5 лет назад | |
| .gitignore | 5 лет назад | |
| LICENSE | 8 лет назад | |
| README.md | 5 лет назад | |
| README_en.md | 5 лет назад | |
| SConscript | 5 лет назад |
中文版 | English Version
本软件包是针对RT-Thread生态移植的Tensorflow Lite Micro嵌入式推理框架, 主要解决在资源, 功耗, 性能等受限环境下的嵌入式系统中, 基于Tensorflow Lite框架训练的深度学习模型的端测部署问题.
| 名称 | 说明 |
|---|---|
| docs | 文档目录 |
| examples | Tensorflow Lite Micro示例 |
| fixedpoint | Google Fixedpoint定点量化库 |
| flatbuffers | Google Flatbuffer模型解释库 |
| ruy | Google Ruy矩阵计算加速库 |
| tflite | 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 之后:
通过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中有两个选项:
(X) Enable Tensorflow Lite Micro audio example
( ) No Tensorflow Lite Micro example
注 : audio example是执行官方携带的语音示例, No example则是不集成example文件, 只使用Tensorflow Lite Micro标准框架.
其中, Select Tensorflow Lite Operations Type中有两个选项:
(X) Using Tensorflow Lite reference operations
( ) Using Tensorflow Lite CMSIS NN operations
注 : reference operation是应用TFLMicro的通用算子(算子与平台隔离,可移植性好), CMSIS NN operations是应用针对ARM平台进行特定优化的算子(主要针对Cortex M4内核以上的平台, 对于特定平台有特定加速). 有关注意事项请参照第四部分!!
Tensorflow Lite Micro整个框架功能较为复杂, API较多, 请先参考introduction.md, 然后通过user-guide.md来学习基本的部署流程, 在此基础之上再考虑自定义开发的问题.
API 手册可以访问这个链接, 其中提供了目前支持算子的情况
更多文档位于 /docs 下,使用前 务必查看