Bläddra i källkod

补充了软件包编译后的系统资源占用情况

QingChuanWS 5 år sedan
förälder
incheckning
657c133eae
2 ändrade filer med 13 tillägg och 6 borttagningar
  1. 5 4
      README.md
  2. 8 2
      README_en.md

+ 5 - 4
README.md

@@ -1,6 +1,6 @@
 # Tensorflow Lite Micro 软件包
 
-[English Version](./README_en.md)
+中文版 | [English Version](./README_en.md)
 
 ## 1、介绍
 
@@ -41,7 +41,7 @@ RT-Thread online packages
 
 在成功下载 Tensorflow Lite Micro package 之后:
 
-- 将`packages/TensorflowLiteMicro_xxx`(其中`xxx`为软件包版本号)更改为`packages/TensorflowLiteMicro`
+- 将下载在`packages`文件下的`TensorflowLiteMicro_xxx`(其中`xxx`为软件包版本号)软件包文件夹名更改为`TensorflowLiteMicro`(即去除版本号, 以免影响编译)
 - 通过menuconfig进行功能配置, 其中在menuconfig中的配置选项为:
 
 ```
@@ -70,8 +70,9 @@ RT-Thread online packages
 
 - 如果在menuconfig中选择了audio example选项时, 软件包自带了main函数, 用户需要手动删除除了`packages/TensorflowLiteMicro/example/audio_main.cc`以外的所有main函数
 - 如果选择的是No example时, 系统没有main函数, 用户可以根据自身需要设计main函数来调用Tensorflow Lite Micro框架  
-- 本软件包在运行时会占用16KB内存, 同时自带的语音识别案例在运行时总共占用22KB内存, 需要通过menuconfig来修改主函数栈的大小以及内存管理算法 ! ! !
-- 本软件包目前只在树莓派4平台上实现成功运行, 其他平台还有待测试. 树莓派4移植仓库链接: https://github.com/QingChuanWS/raspi4-tfliteMicro
+- **本软件包在编译之后大约会占用480KB Flash空间, 92KB RAM空间**, 所以不推荐硬件资源不多的MCU系统使用本软件包
+- 本软件包在运行时会占用16KB RAM空间, 同时自带的语音识别案例在运行时总共占用22KB内存, **需要通过menuconfig来修改主函数栈的大小以及内存管理算法 ! **
+- 本软件包目前只在树莓派4平台上实现成功运行, 其他平台还有待测试. 欢迎大家在其他平台上移植软件包并提出issue. 树莓派4移植仓库链接: https://github.com/QingChuanWS/raspi4-tfliteMicro
 
 ## 5、联系方式 & 感谢
 

+ 8 - 2
README_en.md

@@ -1,5 +1,7 @@
 # Tensorflow Lite Micro Software Package
 
+[Chinese Version](./README.md) | English Version
+
 ## 1. Introduction
 
 This software package is the Tensorflow Lite embedded inference framework Tensorflow Lite Micro software package for the RT-Thread ecosystem . Through this software package, the end deployment task of the deep learning model trained based on the Tensorflow Lite framework can be realized in the embedded system.
@@ -39,7 +41,7 @@ Then let the RT-Thread package manager automatically update, or use the `pkgs --
 
 After successfully downloading the Tensorflow Lite Micro package:
 
-- Change `packages/TensorflowLiteMicro_xxx` (where `xxx` is the package version number) to `packages/TensorflowLiteMicro`
+- Change the package folder name of `TensorflowLiteMicro_xxx` (where `xxx` is the package version number) downloaded under the `packages` file to `TensorflowLiteMicro` (that is, remove the version number, so as not to affect compilation)
 - Function configuration through menuconfig, the configuration options in menuconfig are:
 
 ```
@@ -67,8 +69,12 @@ Among them, audio example is to implement the official audio demo, No example do
 ## 4. Matters needing attention
 
 - If the audio example option is selected in the menuconfig, the software package will use the self main function, and the user needs to manually delete all main functions except `packages/TensorflowLiteMicro/example/audio_main.cc`
+
 - If No example is selected, the system does not have main function, users can design the main function according to their own needs to call the Tensorflow Lite Micro framework
-- This software package occupies 16KB of memory at runtime, and the built-in speech recognition demo occupies a total of 22KB of memory at runtime. You need to modify the size of the main function stack and the memory management algorithm through menuconfig!!!
+
+- **This software package will occupy approximately 480KB Flash space and 92KB RAM space after compilation**, so it is not recommended for MCU systems with few hardware resources to use this software package
+- This software package occupies 16KB RAM space when running, and the built-in voice recognition case occupies a total of 22KB memory when running. **You need to modify the size of the main function stack and the memory management algorithm through menuconfig! **
+
 - This software package currently only runs successfully on the Raspberry Pi 4 platform, other platforms have yet to be tested. Raspberry Pi 4 porting  repositories link: https://github.com/QingChuanWS/raspi4-tfliteMicro
 
 ## 5. Contact & Thanks