最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c++ - Mediapipe PoseDetector custom path to tflite models - Stack Overflow

programmeradmin3浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论