Jeff-sjtu / HybrIK

Official code of "HybrIK: A Hybrid Analytical-Neural Inverse Kinematics Solution for 3D Human Pose and Shape Estimation", CVPR 2021
MIT License
1.17k stars 142 forks source link

Question about demo_image.py #106

Open 383029372 opened 1 year ago

383029372 commented 1 year ago

Thanks for your great work. There are several question about demo_image.py:

  1. I find that you directly set 'focal=1000' and then 'focal = focal / 256 * bbox_xywh[2]'. Could you tell me why the focal length is calculated by this way?
  2. The point of view of the demo is from the front of the image, I wonder how to change other views. I checked the documentation on the official website, but could not find the relevant explanation. Maybe my question was very stupid, but I really hope for your help.
Jeff-sjtu commented 1 year ago

Hi @383029372,

  1. We assume a fixed focal length in the cropped box during training and inference, i.e., focal=1000. Therefore, to project the result to the original image, we follow the perspective project to change the focal length.
  2. To render the pose to other views, you can apply a global orientation to the predicted vertices.