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

New install cannot find face detection models #3704

Closed
monkeyswarm opened this issue Sep 18, 2022 · 8 comments
Closed

New install cannot find face detection models #3704

monkeyswarm opened this issue Sep 18, 2022 · 8 comments
Assignees
Labels
legacy:face detection Issues related to Face Detection platform:c++ Issues specific to C++ framework in mediapipe type:support General questions

Comments

@monkeyswarm
Copy link

Face mesh (and holistic) solutions missing tflite models. (Other solutions such as hand tracking are working fine)

Follow documentation to install and run on MacOS via bazel and C++
On running
$ GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/face_mesh/face_mesh_cpu --calculator_graph_config_file=mediapipe/graphs/face_mesh/face_mesh_desktop_live.pbtxt

Fails due to missing tflite model:
E20220918 14:37:27.581456 205329920 demo_run_graph_main.cc:154] Failed to run the graph: Graph has errors: Calculator::Open() for node "facelandmarkfrontcpu__facedetectionshortrangecpu__facedetectionshortrange__facedetection__inferencecalculator__facelandmarkfrontcpu__facedetectionshortrangecpu__facedetectionshortrange__facedetection__InferenceCalculator" failed: ; Can't find file: mediapipe/modules/face_detection/face_detection_short_range.tflite

System information (Please provide as much relevant information as possible)

  • Have I written custom code (as opposed to using a stock example script provided in Mediapipe): no
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04, Android 11, iOS 14.4): 2018 MacBook Pro (not M1) on MacOS 12.5.1
  • MediaPipe version: top of tree, last commit Thu Sep 8
  • Bazel version: 5.2.0
  • Solution (e.g. FaceMesh, Pose, Holistic): Face mesh (and holistic)
  • Programming Language and version ( e.g. C++, Python, Java): C++

Describe the expected behavior:
Solutions run as described in setup docs.

Standalone code you may have used to try to get what you need :
No additional code has been written.

@monkeyswarm
Copy link
Author

Note that I then tried Iris detection, with a similar failure.
I then ran the 'face detection' solution, which, surprisingly, worked.
I went back and tried Iris and Face Mesh, which then started working.

Seems like only running 'Face Detection' solution will download the model? And other solutions find it after?

@sureshdagooglecom sureshdagooglecom added legacy:face detection Issues related to Face Detection platform:c++ Issues specific to C++ framework in mediapipe labels Sep 19, 2022
@sureshdagooglecom
Copy link

Hi @monkeyswarm ,
We have closed issue running in thread #2516 , please check and verify.

@sureshdagooglecom sureshdagooglecom added the stat:awaiting response Waiting for user response label Sep 19, 2022
@monkeyswarm
Copy link
Author

Hi @sureshdagooglecom , what about issue #2516 is related to this issue? I am on a different bazel version, and not on an M1 mac. I don't see any mention of builds not finding models in that thread. Please advise.

@google-ml-butler google-ml-butler bot removed the stat:awaiting response Waiting for user response label Sep 19, 2022
@sureshdagooglecom
Copy link

Hi @monkeyswarm ,
Could you please let us know if your issue has been resolved as per the above #3698 (comment) Thank you!

@sureshdagooglecom sureshdagooglecom added the stat:awaiting response Waiting for user response label Sep 20, 2022
@google-ml-butler
Copy link

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.

@Fogrunner
Copy link

Fogrunner commented Sep 30, 2022

I wasted whole of day to find why. Please, write somewhere : the demos are needed building sequentially.

@google-ml-butler
Copy link

Closing as stale. Please reopen if you'd like to work on this further.

@google-ml-butler
Copy link

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

@sureshdagooglecom sureshdagooglecom removed stat:awaiting response Waiting for user response stale labels Oct 7, 2022
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:c++ Issues specific to C++ framework in mediapipe type:support General questions
Projects
None yet
Development

No branches or pull requests

3 participants