admin管理员组文章数量:1345707
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.
本文标签: cMediapipe PoseDetector custom path to tflite modelsStack Overflow
版权声明:本文标题:c++ - Mediapipe PoseDetector custom path to tflite models - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743749759a2532429.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论