Help with Pose Detection tutorial setup
See original GitHub issuePlugin Version or Commit ID
latest
Unity Version
2021.2.7f1
Your Host OS
mac OS Monterey
Target Platform
UnityEditor
Description
Hello I’m trying to create separate model for pose detection by tweaking steps from face mesh tutorial. I’ve used this config https://github.com/google/mediapipe/blob/c6c80c37452d0938b1577bd1ad44ad096ca918e0/mediapipe/graphs/pose_tracking/pose_tracking_cpu.pbtxt
I’ve copy pasted code from FaceMesh.cs and changed to resourcemanager to pose_detection.bytes
yield return _resourceManager.PrepareAssetAsync("pose_detection.bytes");
Code is attached PoseEstimation.cs.txt
however following error comes up
MediaPipeException: INTERNAL: Graph has errors: Calculator::Process() for node "poserenderercpu__RecolorCalculator" failed: ; RET_CHECK failure (external/com_google_mediapipe/mediapipe/calculators/image/recolor_calculator.cc:241) input_mat.channels() == 3
Also attached files. I guess it has something to do with image texture channels or something any ideas how to solve this?
Code to Reproduce the issue
pose_tracking_cpu.txt PoseEstimation.cs.txt
Additional Context
No response
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
Which kind of exception occured? Please share the complete error message.
I think the stream type is wrong.
What document are you talking about?
The most straightforward way is to change the input format from RGBA to RGB.
Another option is to stop rendering annotations using MediaPipe (see the Pose Tracking sample).
Sorry, I don’t get what you mean by “whenever code”.