mediapipe icon indicating copy to clipboard operation
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

Open wanggoldx opened this issue 1 year ago • 2 comments

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

wanggoldx avatar Aug 23 '24 06:08 wanggoldx

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!!

kuaashish avatar Aug 23 '24 07:08 kuaashish

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

螢幕擷取畫面 2024-08-23 152120

How can I solve this problem? Thank for your friendly help.

wanggoldx avatar Aug 23 '24 07:08 wanggoldx

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!!

kuaashish avatar Nov 26 '24 09:11 kuaashish

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.

github-actions[bot] avatar Dec 04 '24 02:12 github-actions[bot]

This issue was closed due to lack of activity after being marked stale for past 7 days.

github-actions[bot] avatar Dec 12 '24 02:12 github-actions[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Dec 12 '24 02:12 google-ml-butler[bot]