I have made a graph using PoseDetectionCpu
from mediapipe in a C++ library. I can run the graph and detect on my PC but the paths are hardcoded to mediapipe/modules/pose_landmark as mentioned at /mediapipe/modules/pose_landmark/pose_landmark_cpu.pbtxt#L10
I have tried numerous ways incl. setting --resource_root_dir as discussed here mediapipe/issues/4040 and setting absl::SetFlag(&FLAGS_resource_root_dir, "/path/to/mymodels/dir")
Neither has the effect of setting the correct path to the models.
One thing that appears to work is to break down the graph into smaller components and do search and replace in the graph text string, but this feels like a lot of work to just set a path to the model.
What other options do I have to set a custom path to the directory where I store my models. On my target system iOS I cannot use symlinks and the path to my sandbox is determined at runtime.