rajkundu / libmp-example

Use Mediapipe with CMake: Example LibMP Usage Application
Apache License 2.0
20 stars 3 forks source link

Mediapipe can't locate data files. #6

Closed pedroarroyo closed 1 year ago

pedroarroyo commented 1 year ago

Hi,

The project builds fine, however when I try to run it, it looks like libMP can't locate the tflite files. Do they need to be copied over to the same folder as the executable? Or is it possible to pass a path into mediapipe?

I20230825 11:23:36.616098 303962 libmp_impl.cpp:74] Status: INVALID_ARGUMENT: Graph has errors: Calculator::Open() for node "facelandmarkfrontcpufacelandmarkcpufacelandmarksmodelloader__LocalFileContentsCalculator" failed: ; Can't find file: mediapipe/modules/face_landmark/face_landmark_with_attention.tflite

pedroarroyo commented 1 year ago

Resolved by setting the working directory for my debug session to the mediapipe folder.

rajkundu commented 1 year ago

Sorry I didn't see this in time to reply - thanks for sharing your solution!