Skip to content
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

mediapipe hangs if tensorflow imported #2986

Closed
serengil opened this issue Jan 13, 2022 · 7 comments
Closed

mediapipe hangs if tensorflow imported #2986

serengil opened this issue Jan 13, 2022 · 7 comments
Assignees
Labels
legacy:face detection Issues related to Face Detection platform:python MediaPipe Python issues status:duplicate This issue or pull request already exists type:bug Bug in the Source Code of MediaPipe Solution

Comments

@serengil
Copy link

serengil commented Jan 13, 2022

Hello,

I am using a mac with macOS Catalina (version 10.15.7) - intel core i7. If I import tensorflow first, then mediapipe hangs and waits. If I don't mediapipe, then it works. I write the following code to test importing and not importing tensorflow cases.

BTW, my python version is 3.8.12 and mediapipe version is 0.8.9.1.

if False:
    import tensorflow as tf
    print(tf.__version__) #mine version is 2.7.0

import mediapipe as mp
import cv2

img = cv2.imread("deepface/tests/dataset/img1.jpg")

mp_face_detection = mp.solutions.face_detection

#this line prints "INFO: Created TensorFlow Lite XNNPACK delegate for CPU." if tensorflow was not imported yet
face_detector = mp_face_detection.FaceDetection( min_detection_confidence=0.6)

#this line hangs and waiting if tensorflow was imported
results = face_detector.process(img)

print(results.detections)

I found a similar issue here, but it is closed because of inactivity.

@serengil serengil added the type:bug Bug in the Source Code of MediaPipe Solution label Jan 13, 2022
@sgowroji sgowroji added platform:python MediaPipe Python issues legacy:face detection Issues related to Face Detection status:duplicate This issue or pull request already exists labels Jan 13, 2022
@sgowroji
Copy link

Duplicate #1461 (comment)

@serengil
Copy link
Author

But that is not a solution, right?

@sgowroji
Copy link

Yes its known issue in MediaPipe and We don't have any resolution at present. We will keep you inform on the main thread once we found any update. Thanks!

@sureshdagooglecom sureshdagooglecom added the stat:awaiting googler Waiting for Google Engineer's Response label May 24, 2022
@kuaashish kuaashish assigned kuaashish and unassigned jiuqiant Apr 24, 2023
@kuaashish kuaashish removed the stat:awaiting googler Waiting for Google Engineer's Response label Apr 24, 2023
@kuaashish
Copy link
Contributor

Hello @serengil,
We are upgrading the MediaPipe Legacy Solutions to new MediaPipe solutions However, the libraries, documentation, and source code for all the MediaPipe Legacy Solutions will continue to be available in our GitHub repository and through library distribution services, such as Maven and NPM.

You can continue to use those legacy solutions in your applications if you choose. Though, we would request you to check new MediaPipe solutions which can help you more easily build and customize ML solutions for your applications. These new solutions will provide a superset of capabilities available in the legacy solutions.

@kuaashish kuaashish added the stat:awaiting response Waiting for user response label Apr 24, 2023
@github-actions
Copy link

github-actions bot commented May 2, 2023

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 github-actions bot added the stale label May 2, 2023
@github-actions
Copy link

github-actions bot commented May 9, 2023

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

@github-actions github-actions bot closed this as completed May 9, 2023
@google-ml-butler
Copy link

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

@kuaashish kuaashish removed stat:awaiting response Waiting for user response stale labels May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy:face detection Issues related to Face Detection platform:python MediaPipe Python issues status:duplicate This issue or pull request already exists type:bug Bug in the Source Code of MediaPipe Solution
Projects
None yet
Development

No branches or pull requests

5 participants