-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Path Handling Issue with Gesture Recognizer Model in Mediapipe #5400
Comments
I tried creating a new path and moving the file into this folder, as you can see, I removed the
But I'm still getting the same error message:
It seems that this issue isn't related to the |
Hi @justsonghua, It appears you are using our legacy hand solution based on the provided code. This solution has been upgraded and is now part of the new Gesture Recognition Task API. Support for the legacy hand solution has ended. Please try our new Task API for the updated Python example available here. For a general overview, visit our overview page. Apart from this we can not do much about this issue, If you encounter any issues with new Task API, please report them here for further assistance. Thank you!! |
So, with the new api, it works now. But a new problem, that it can only recognize one hand. Is this simple model (gesture_recognizer.task) can only one hand recognize? |
I found this demo, and now my codes can recognize both hands now. |
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
Yes
OS Platform and Distribution
Window11 23H2 22631.3527
MediaPipe Tasks SDK version
No response
Task name (e.g. Image classification, Gesture recognition etc.)
Gesture recognition
Programming Language and version (e.g. C++, Python, Java)
python
Describe the actual behavior
Mediapipe should correctly load and use the gesture recognizer model from the specified path, regardless of special characters in the directory name.
Describe the expected behaviour
Mediapipe try to load the gesture_recognizer.task from the conda virtual env folder.
Standalone code/steps you may have used to try to get what you need
Other info / Complete Logs
I suspect the issue might be due to the
%
character in my file path, but I don't understand why the problem still exists even after I set the absolute path. The path remains unchanged until it's passed intopython.BaseOptions()
, but after that, it suddenly switches to the conda virtual environment's folder.The text was updated successfully, but these errors were encountered: