Using tflite and getting properties of interpreter like :
print(interpreter.get_input_details())
[{'name': 'input_1_1', 'index': 47, 'shape': array([ 1, 128, 128, 3], dtype=int32), 'dtype': <class 'numpy.uint8'>, 'quantization': (0.003921568859368563, 0)}]
What does 'quantization': (0.003921568859368563, 0)
mean?
It means quantization parameters values: scale and zero_point of input tensor.
This is necessary to convert a quantized uint8 number q to floating point number f using formula:
f = (q - zero_point) * scale
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With