-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diffrent results from plugin and Python script on same model. - SELF SOLVED #74
Comments
If you check Google example you can see that image is converted to 4D matrix differently. The 4D array structure flattened to buffer will have diffrent memory structure. I am trying to find a reason why with this plugin I am getting diffrent results from Python script for the same model using the same image.
|
I spent significant time debugging and I still don't know why same picture gets diffrent results from same model using Python Tensorflow Lite API (correct one) and custom model does not. |
The bug is in example code, please change routine to format:
|
The example code converts image 224x224x3 into long list where each pixel is recorded as RGB in buffer of length 224x244. In my opinion each channel should be serialized separately so first 224x244 is R channel the G then B.
Nevertheless using both method the results of custom not optimized float model are difffrent on Android phone than from Python script processing same image with same model.
I am trying almost a week to find difference, any hints ?
The text was updated successfully, but these errors were encountered: