当前位置:网站首页>[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
边栏推荐
- LCA board
- Blood cases caused by < meta charset=UTF-8> -- Analysis of common character codes
- 不会就坚持64天吧 查找插入位置
- 数据集成这个地方的过滤条件该咋写,用的啥语法?sql语法处理bizdate可以不
- 不会就坚持70天吧 数组中第k大的数
- How to solve the problem of store ranking?
- Locally call tensorboard and Jupiter notebook on the server (using mobaxterm)
- Installation and use of stm32cubemx (5.3.0)
- openFeign异步调用问题
- Class starts! See how smardaten decomposes complex business scenarios
猜你喜欢
随机推荐
Some problems about pointers
“蔚来杯“2022牛客暑期多校训练营2 H
After I get the winfrom specific control ID from the database, I need to find the corresponding control through this ID and assign a value to the text text of the control. What should I do
不会就坚持68天吧 狒狒吃香蕉
Locally call tensorboard and Jupiter notebook on the server (using mobaxterm)
Const char* and char*, string constants
从淘宝,天猫,1688,微店,京东,苏宁,淘特等其他平台一键复制商品到拼多多平台(批量上传宝贝详情接口教程)
pat A1041 Be Unique
数据源是SQL server ,我要配置日期字段 updateDate 最后两天日期的增量数据,做增
Shielding ODBC load balancing mode in gbase 8A special scenarios?
The function "postgis_version" cannot be found when installing PostGIS
C语言:typedef知识点总结
Asp. Net MVC, how can the controller in the folder jump to the controller in the root directory?
Copy products with one click from Taobao, tmall, 1688, wechat, jd.com, Suning, taote and other platforms to pinduoduo platform (batch upload baby details Interface tutorial)
HC06 HC05 BT
The structure pointer must be initialized, and the pointer must also be initialized
Function pointer and callback function
Multi rotor six axis hardware selection
不会就坚持63天吧 最大的异或
How to query the submission number of a version









