Need to modify quantization_param in quantized.prototxt file. But can not parse the prototxt file using caffe.Net

40 views
Skip to first unread message

MD AMIR SOHAIL

unread,
Jun 27, 2018, 4:05:17 AM6/27/18
to ristretto-users

I am making an experiment. I quantized a model. It gives me quantized.prototxt file. It has an extra parameter named quantization_param . So, when trying to parse the file using caffe.Net(), it throws an error mentioning :
[libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 66:22: Message type "caffe.LayerParameter" has no field named "quantization_param".

quantization_param looks like -
quantization_param {
bw_layer_in: 32
bw_layer_out: 32
bw_params: 8
fl_layer_in: 24
fl_layer_out: 20
fl_params: 8
}

How can I access that quantized.prototxt file and modify fields of quantization_param. Do you have any idea ? Can you provide any Python code / Shell script to do this job. Thanks in Advance

Reply all
Reply to author
Forward
0 new messages