ImageEmbedderOption quantize behavior #5290
Labels
platform:python
MediaPipe Python issues
platform:raspberry pi
Raspberry pi ARM
task:image embedding
Issues related to Image Embedding: Embed images into feature vectors
type:support
General questions
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
Yes
OS Platform and Distribution
Raspberry pi 5
MediaPipe Tasks SDK version
No response
Task name (e.g. Image classification, Gesture recognition etc.)
ImageEmbedder
Programming Language and version (e.g. C++, Python, Java)
Python
Describe the actual behavior
The output from the custom tflite model with quantize set to False is slower than when it is set to True. In addition the output when the flag quantize = False the model output are floats, even if the real model output are specified to be uint8
Describe the expected behaviour
We expect that when quantize is false then the computation should be faster since it should not compute any additional operation and also we expect a uint8 output, since our tflite model when called with Interpreter returns an uint8 embedding
Standalone code/steps you may have used to try to get what you need
Other info / Complete Logs
No response
The text was updated successfully, but these errors were encountered: