mediapipe
mediapipe copied to clipboard
Error: NOT_FOUND: Input tensor has type float32: it requires specifying NormalizationOptions metadata to preprocess input images.; Initialize was not ok; StartGraph failed
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
rock5b dibian
MediaPipe Tasks SDK version
No response
Task name (e.g. Image classification, Gesture recognition etc.)
Image classification
Programming Language and version (e.g. C++, Python, Java)
python
Describe the actual behavior
The error occured
Describe the expected behaviour
The model can run properly
Standalone code/steps you may have used to try to get what you need
When I plug the model into the code copy from this website https://colab.research.google.com/github/googlesamples/mediapipe/blob/main/examples/image_classification/python/image_classifier.ipynb
The error occured.
I have find many solution and known that I need to add the metadata. However, after add the metadata. The model cannot run properly.
Other info / Complete Logs
No response
Hi @wanggoldx,
You are correct that you need to add the metadata. The additional configuration is likely necessary because you are using an operating system we have not tested. You can find the list of supported operating systems here. Please try adding the metadata for data of type UINT8 or FLOAT32 for NormalizationOptions, as outlined here, and see if that resolves the issue.
Thank you!!
Hi @wanggoldx,
You are correct that you need to add the metadata. The additional configuration is likely necessary because you are using an operating system we have not tested. You can find the list of supported operating systems here. Please try adding the metadata for data of type UINT8 or FLOAT32 for NormalizationOptions, as outlined here, and see if that resolves the issue.
Thank you!!
Actually, I have try to add the metadata before. However after adding the metadata, I have put the model to mediapipe studio to test (not the OS not tested) The output is wrong, it appear something like
How can I solve this problem? Thank for your friendly help.
Hi @wanggoldx,
We are revisiting older issues. Please let us know if this issue has been resolved or if you need additional support from us.
Thank you!!
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.
This issue was closed due to lack of activity after being marked stale for past 7 days.