mediapipe: FaceMesh Desktop Run "Can't find file: mediapipe/modules/face_detection/face_detection_short_range.tflite"
System information
- Have I written custom code: X
- OS Platform and Distribution: macOS Ventura (Version 13.0)
- MediaPipe version: master branch
- Bazel version: 5.2.0
- Solution: FaceMesh
- Programming Language and version: C++
Describe the expected behavior:
Build and run Face Landmark Example on Desktop Running on CPU
Standalone code you may have used to try to get what you need :
Build
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/face_mesh:face_mesh_cp
Run
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
Other info / Complete Logs : The complete error log
I20221116 17:59:35.089862 246048000 demo_run_graph_main.cc:54] Initialize the calculator graph.
I20221116 17:59:35.095134 246048000 demo_run_graph_main.cc:58] Initialize the camera or load the video.
I20221116 17:59:36.638492 246048000 demo_run_graph_main.cc:79] Start running the calculator graph.
I20221116 17:59:36.639755 246048000 demo_run_graph_main.cc:84] Start grabbing and processing frames.
E20221116 17:59:36.674479 246048000 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
The current working directory when the command runs
❯ pwd
/Users/scienceshow/Desktop/opencv/mediapipe
❯ ls
BUILD.bazel WORKSPACE build_desktop_examples.sh setup.py
CONTRIBUTING.md bazel-bin build_ios_examples.sh setup_android_sdk_and_ndk.sh
Dockerfile bazel-mediapipe docs setup_opencv.sh
LICENSE bazel-out mediapipe third_party
MANIFEST.in bazel-testlogs package.json tsconfig.json
README.md build_android_examples.sh requirements.txt yarn.lock
I have tried this command and encountered the same error
set 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
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16
To answer my own question, I downloaded from here to bazel-bin as above, and now the demo works. That isn’t super satisfying, but whatever, I guess?
I discovered this link here
checking out v0.8.10.2 git checkout v0.8.10.2 Works fine
v0.8.11 - same error