I compiled face_geometry_from_landmarks and face_geometry_from_detection to get the binary graphs and call it from python with the mp.CalculatorGraph but I can't make it work. I always get the following errors:
For face_geometry_from_landmarks.binarypb:
RuntimeError: ValidatedGraphConfig Initialization failed.
No registered object with name: FaceGeometryPipelineCalculator; Unable to find Calculator "FaceGeometryPipelineCalculator"
For face_geometry_from_detection:
RuntimeError: ValidatedGraphConfig Initialization failed.
No registered object with name: DetectionToLandmarksCalculator; Unable to find Calculator "DetectionToLandmarksCalculator"
No registered object with name: FaceGeometryPipelineCalculator; Unable to find Calculator "FaceGeometryPipelineCalculator"
I checked the dependencies on the mediapipe/modules/face_geometry/BUILD file and they seem to be there so I don't understand what is going wrong:
Complete Logs:
Include Complete Log information or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached:
Please make sure that this is a build/installation issue and also refer to the troubleshooting documentation before raising any issues.
System information (Please provide as much relevant information as possible)
Describe the problem:
I compiled
face_geometry_from_landmarks
andface_geometry_from_detection
to get the binary graphs and call it from python with themp.CalculatorGraph
but I can't make it work. I always get the following errors:For
face_geometry_from_landmarks.binarypb
:For
face_geometry_from_detection
:I checked the dependencies on the
mediapipe/modules/face_geometry/BUILD
file and they seem to be there so I don't understand what is going wrong:Provide the exact sequence of commands / steps that you executed before running into the problem:
Graphs compilation:
bazel build mediapipe/modules/face_geometry:face_geometry_from_detection
bazel build mediapipe/modules/face_geometry:face_geometry_from_landmarks
Copied the binary graphs to the library resources inside the virtual env site-packages and tried to call that from Python:
Complete Logs: Include Complete Log information or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached: