当前位置:网站首页>[k210 stepping pit] pytorch model is converted to kmodel and used on dock. (ultimately not achieved)
[k210 stepping pit] pytorch model is converted to kmodel and used on dock. (ultimately not achieved)
2022-07-29 04:14:00 【Zhili】
Catalog
- Preface
- One 、 Step on the big pit
- Two 、pytorch turn kmodel
- The first ① Step :pytorch Model structures, 、 Training 、 preservation
- The first ② Step ( Train of thought ):pytorch turn onnx turn pb turn tflite turn kmodel
- The first ② Step ( Train of thought two ):pytorch turn onnx turn h5 turn tflite turn kmodel
- The first ② Step ( Train of thought three ):k210 Jianan SDK Development
Preface
Hardware :maix dock
Software :maix ide nncase 0.1( Version big pit )
One 、 Step on the big pit
- maix Yes k210 Of nncase Model transformation tools have long ceased to support , Only support nncase 0.1 edition . Use the latest nncase The conversion kmodel stay maix Can't load , Take another one. , So we need to use maix Yes k210 Do development , To use nncase0.1 To transform the model , But the official website of Jianan has already been updated nncase1.7, and 0.1 It belongs to fossil version , No longer do support .【 good , I want to use maix, Only choose nncase0.1】
- Connect , therefore 0.1 very low,nncase0.1 Conversion only tflite Model to kmodel. And I found in use ,nncase0.1 It seems that it can't be changed pytorch From the model transformation tflite( Personal understanding ), I don't know what the principle is , In short, it is to report an error . Switch to a tensorflow Model generated tfliite You can use it nncase0.1 Conversion success .【 good , Then I'll replace it with tensorflow Write model 】
- Connect ,tensorflow Generated tflite, the nncase0.1 To kmodel, Burn to maix dock in . One problem I found was ,maix Provided model inference function , Input can only be pictures ( Personal understanding ), But what I want is that the network input data and output data are determined by myself .【 good , That's not necessary maix Developed , Change to the one officially provided by Jianan K210 SDK library 】
- Connect , Switch to a k210 SDK library , Um. , The whole thing can't come , It's too hard , Official from Jia Nan k210 sdk Routines are for their own development boards . But now I use maix dock Development board , I want to use other development board routines to develop my own development board , ok , The whole thing can't come , pure c Write various drivers and models to load reasoning code .【 good , I give up maix dock k210】
- As mentioned above , Hit the wall step by step , Change your route step by step , Finally give up 210( Personal dishes ), Ready to change v831. The following is a record of the process of this exploration
- summary : His writing pytroch The model wants to k210 Upper Department , We have to choose the official development board of Jianan , With what he offered SDK Development .maix dock no way ( Personal understanding )
Two 、pytorch turn kmodel
The first ① Step :pytorch Model structures, 、 Training 、 preservation
The first ② Step ( Train of thought ):pytorch turn onnx turn pb turn tflite turn kmodel
1. pytorch turn onnx ( ripe ,pytorch Official support )
2. onnx turn pb()
3. pb turn tflite()
4. tflite turn kmodel(nncase0.1)
The first ② Step ( Train of thought two ):pytorch turn onnx turn h5 turn tflite turn kmodel
The first ② Step ( Train of thought three ):k210 Jianan SDK Development
边栏推荐
- Safari's compatibility with Z-index
- 顺序表和链表
- 开课!看smardaten如何分解复杂业务场景
- Locally call tensorboard and Jupiter notebook on the server (using mobaxterm)
- 不会就坚持70天吧 数组中第k大的数
- Press the missing number of interview question 17.04 | | 260. the number that appears only once (including bit operation knowledge points)
- Solution: module 'xlrd' has no attribute 'open_ Error reporting of workbook '
- 优炫数据库有办法查到主集群每天传给备集群的日志量吗?
- [paper translation] vectornet: encoding HD maps and agent dynamics from vectorized representation
- Opengauss pre check installation
猜你喜欢

Some problems about pointers

不会就坚持62天吧 单词之和

Lua language (stm32+2g/4g module) and C language (stm32+esp8266) methods of extracting relevant data from strings - collation

Why are there so many unknowns when opengauss starts?

不会就坚持65天吧 只出现一次的数字

Whole house WiFi solution: mesh router networking and ac+ap

编译与链接

信号处理中的反傅里叶变换(IFFT)原理

UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0x90 in position 614: ordinal not in range(128)

不会就坚持58天吧 实现前缀树
随机推荐
Do you have a boss to help me check whether the parameter configuration of the Flink SQL connection Kafka authentication Kerberos is wrong
这个报错是什么鬼啊,不影响执行结果,但是在执行sql时一直报错。。。连接maxComputer是使用
LCA 板子
“蔚来杯“2022牛客暑期多校训练营2 H
Leftmost prefix principle of index
rman不标记过期备份
Codeforces round 810 (Div. 2) d. rain (segment tree difference)
数据集成这个地方的过滤条件该咋写,用的啥语法?sql语法处理bizdate可以不
Fuzzy query of SQL
The difference between dynamic, VaR and object in fluent
C语言:联合体知识点总结
不会就坚持70天吧 数组中第k大的数
Basic configuration of BGP - establish peers and route announcements
SVG--loading动画
[deep learning CPU (part outside) - virtual memory]
opengauss预检查安装
为什么opengauss启动的时候这么多的unknown?
从淘宝,天猫,1688,微店,京东,苏宁,淘特等其他平台一键复制商品到拼多多平台(批量上传宝贝详情接口教程)
The output comparison function of Tim is introduced in detail through PWM breathing lamp and PWM controlled DC motor
索引的最左前缀原理