plugin tflm#1
Open
Derekduke wants to merge 1 commit intoRT-Thread:mainfrom
Open
Conversation
Contributor
|
Reviewers ( @QiwenLi0729 @yc66542260 ) : beside the code inspection, please ensure this plugin is not bound to specific board. |
Member
liqiwenx
reviewed
Jul 19, 2022
| #include <rt_ai_log.h> | ||
| #ifdef RT_AI_USE_TFLM | ||
|
|
||
| #define tflm_load_model person_detect_init |
Member
There was a problem hiding this comment.
该后端适配过于粗糙, API直接对接到了tflm的人形检测demo的函数上. 无法满足框架正常运行要求.
| logging.info("{} loading to project successfully...".format(source.name)) | ||
|
|
||
| def c_model_convert(self, tflm_out , model_path): | ||
| c_model_name = model_path[9:-7] |
Member
There was a problem hiding this comment.
c_model_name = model_path[9:-7] 该部分对于模型路径处理直接使用固定偏移, 无法正常工作
| #if model_data_c.exists(): model_data_c.unlink() | ||
| print("model_data_c path:" , model_data_c_path) | ||
|
|
||
| os.system("xxd -i "+ "./Models/"+c_model_name +".tflite"+" > " +model_data_c_path) |
Member
There was a problem hiding this comment.
该位置调用xxd工具, 在windows环境下无此默认工具, 且工具路径没有做处理, 将工作不正常
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

原有的imx6ull插件修改为tflm插件