Closed riboyuan99 closed 3 years ago
Hi! You can check draw_poses, which parses and draws 2D poses coordinates.
Thanks for your helpful hint. I have read the code but got stuck on one thing. We only have 18 body parts:
But we have 19 kpt_id:
for kpt_id in range(pose.shape[1])
What is the missing one?
Any hint would be appreciated
Nothing is missed. 2D network detects 18 keypoints you have found above. The order of 2D keypoints is aligned to match the 3D network output. 2
is reserved value for pelvis in 3D network. Now it is not predicted, it was left for the future.
Thank you very much!
@Daniil-Osokin sorry so there is no predicted 3D pelvis in this model?
Right.
@Daniil-Osokin but parse poses emits a pelvis in index 2? Is that not an accurate calculation or something?
It always has "-1" as coordinates values. It is left for the legacy reasons.
I am able to get 2d coordinate by following code:
poses_3d, poses_2d = parse_poses(inference_result, input_scale, stride, fx, is_video)
and the output looks like this:How do I know which body part it is referring to?
Any advice would be appreciated.