如何查看 .tflite 文件中的权重? [英] How can I view weights in a .tflite file?

查看:60
本文介绍了如何查看 .tflite 文件中的权重?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了 MobileNet 的预训练 .pb 文件,发现它没有被量化,而完全量化的模型应该转换成 .tflite 格式.由于我不熟悉移动应用程序开发工具,我如何从 .t​​flite 文件中获取 MobileNet 的完全量化权重.更准确地说,如何提取量化参数并查看其数值?

I get the pre-trained .pb file of MobileNet and find it's not quantized while the fully quantized model should be converted into .tflite format. Since I'm not familiar with tools for mobile app developing, how can I get the fully quantized weights of MobileNet from .tflite file. More precisely, how can I extract quantized parameters and view its numerical values ?

推荐答案

Netron 模型查看器具有很好的数据视图和导出功能,以及很好的网络图视图.https://github.com/lutzroeder/netron

The Netron model viewer has nice view and export of data, as well as a nice network diagram view. https://github.com/lutzroeder/netron

这篇关于如何查看 .tflite 文件中的权重?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆