Closed Callum-Halton closed 3 days ago
Hi @Callum-Halton,
Please update to the latest version, as 0.9.1.0 is outdated and may contain bugs. I successfully ran the code on macOS 14.6.1 with Python 3.10.9 using version 0.10.14, as shown in the attached screenshot. This issue is not limited to macOS; I also reproduced the error in Colab, which confirms the same problem. You can view the details in the attached gist.
Kindly upgrade to the latest version and please let us know if you still encounter the error. Beyond this, there isn't much more we can do to resolve the issue.
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.
Same here
Hi @JeongJun-Lee,
We apologize for the previous delay in response. Based on feedback here, it seems the issue you were experiencing has been resolved in a more recent version. Please confirm if you are using the latest version. If you are still encountering problems, please provide more details. Additionally, @Callum-Halton, please let us know if you have updated to the latest version and if any further action is required.
Thank you!!
Hi @kuaashish
After updating to the latest version the problem was resolved, many thanks!
Hi @Callum-Halton,
Thank you for the confirmation. As the issue has been resolved, we are closing this and marking it as resolved internally.
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
macOS 14.6.1 BuildVersion: 23G93
MediaPipe Tasks SDK version
mediapipe 0.9.1.0
Task name (e.g. Image classification, Gesture recognition etc.)
Object Detection
Programming Language and version (e.g. C++, Python, Java)
Python 3.10.9
Describe the actual behavior
<ValueError: Expected a model with 4 output tensors, found 2> when trying to instantiate mp.tasks.vision.ObjectDetector in Python with recommended model
Describe the expected behaviour
mp.tasks.vision.ObjectDetector is successfully instantiated
Standalone code/steps you may have used to try to get what you need
Models Tested
Tried with the models provided here, specifically the latest int8 and latest float32 models
Code Run
Output
Other info / Complete Logs
Trouble Shooting Attempts