video-to-pose3D icon indicating copy to clipboard operation
video-to-pose3D copied to clipboard

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

Open SyhFighting opened this issue 3 years ago • 2 comments

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这四个参数代表什么呢,如何可以得到它们?

SyhFighting avatar Jul 26 '21 07:07 SyhFighting

  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)

zh-plus avatar Jul 27 '21 08:07 zh-plus

thank you!!

SyhFighting avatar Jul 27 '21 08:07 SyhFighting