How can I view weights in a .tflite file?

mingxin zhao picture mingxin zhao · Aug 31, 2018 · Viewed 9.9k times · Source

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 ?

Answer

Jay Norwood picture Jay Norwood · Sep 12, 2018

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