tfjs 转为 tflite,再转为适用于k210的kmodel模型

Viewed 17

问题描述


image.png
想在web端实现tfjs的模型训练,然后转为 tflite ,然后再转为kmodel模型。但是目前转出的 tflite 使用nncase v0.1.0-rc5版本无法转换,会出现各种错误,如

Fatal: Layer Pad is not supported: Only paddings of [[0,0],[1,1],[1,1],[0,0]] is supported
NnCase.Converter.Converters.LayerNotSupportedException: Layer Pad is not supported: Only paddings of [[0,0],[1,1],[1,1],[0,0]] is supported

请问在使用tfjs向tflite转换时,应该使用什么技术或工具?应该注意什么细节?

目前开发发现,需要一些比较老的技术才能实现,但是没有相关的文档说明应该使用什么版本的库,以及需要什么参数才能生成nnacse所需要的tflite模型文件,所以即使成功转换出tflite,也无法使用nncase继续转换为kmodel。

0 Answers