在应用训练后量化后,我定制的CNN模型被缩小到原来大小的1/4 (从56.1MB减少到14 my )。gov.nih.nlm.malaria_screener.CameraActivity$8.run(CameraActivity.java:810)模型的输入图像大小为所以,如果我要创建Bytebuffer: 100x100
我对Tensorflow训练后量化过程感到困惑。官方网站提到了TensorflowLite量化。不幸的是,这在我的例子中不起作用,也就是说,TFLiteConverter为我的Mask RCNN模型返回错误:
Some of the operators in the model are not supported我对这些错误并不感到惊讶,因为不支持手机的decodejpeg可能是有意义的<
我正在尝试将DNN模型的.pb格式更改为.tflite,我还想量化所有的权重和偏差。当使用以下代码时,权重以8位为单位进行量化,但偏置仍然是浮点数。import tensorflow as tf
converter=tf.lite.TFLiteConverter.from_frozen_graph(graph_def_