video-to-pose3D
video-to-pose3D copied to clipboard
您好,请教一下关于videopose.py中的一些问题
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这四个参数代表什么呢,如何可以得到它们?
- The definition of rot: check this issue.
- 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)
thank you!!