HybrIK icon indicating copy to clipboard operation
HybrIK copied to clipboard

Question about demo_image.py

Open 383029372 opened this issue 1 year ago • 1 comments

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.

383029372 avatar Aug 31 '22 15:08 383029372

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.

Jeff-sjtu avatar Nov 21 '22 05:11 Jeff-sjtu