-
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
If tensorflow is imported first, media pipe solution hangs indefinitely #1461
Comments
It hangs at https://github.com/google/mediapipe/blob/master/mediapipe/python/solution_base.py#L301 where it's waiting for the results coming back from the c++ graph execution logic. MediaPipe has the c++ tflite inference engine in its binary. So, my initial guess is that the weird behavior is caused by the conflicts between MediaPipe's builtin tflite inference engine and TensorFlow's tflite inference engine. It's possible that who gets imported first will be registered and the latter one will be totally ignored. |
Same thing happens with ObjC/Swift on iOS. Mediapipe should probably include a warning in the documentation that you can't import Tensorflow separately and expect it to work. |
any news on this? I may be experiencing the same issue, though it is not fixed by importing tensorflow first |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
We are reopening this issue as this still exist even with the latest release. |
In case you are working with classes, for this special case it might help to scope
|
Hi @NikhilBadami , |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
I was recently using the pose estimation solution in mediapipe in Python and came across an interesting bug. I found that if I imported tensorflow before importing mediapipe, it would cause the mediapipe library to hang indefinitely, but importing tensorflow second fixed this issue. The code I used to test this is below:
I am working on a Mac on Catalina
The text was updated successfully, but these errors were encountered: