zh-plus / video-to-pose3D

Convert video to 3D pose in one-key.
MIT License
643 stars 130 forks source link

您好,请教一下关于videopose.py中的一些问题 #52

Open SyhFighting opened 3 years ago

SyhFighting commented 3 years ago

save 3D joint points

np.save('outputs/test_3d_output.npy', prediction, allow_pickle=True)
rot = np.array([0.14070565, -0.15007018, -0.7552408, 0.62232804], dtype=np.float32)
prediction = camera_to_world(prediction, R=rot, t=0)

请问,这部分代码中,rot这四个参数代表什么呢,如何可以得到它们?

zh-plus commented 3 years ago
  1. The definition of rot: check this issue.
  2. This rotation value is retrieved from a random object. In the original script from Facebook, there's a comment indicating that: Comments
    # If the ground truth is not available, take the camera extrinsic params from a random subject.
    # They are almost the same, and anyway, we only need this for visualization purposes.
    for subject in dataset.cameras():
    if 'orientation' in dataset.cameras()[subject][args.viz_camera]:
        rot = dataset.cameras()[subject][args.viz_camera]['orientation']
        break
    prediction = camera_to_world(prediction, R=rot, t=0)
SyhFighting commented 3 years ago

thank you!!