Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SyhFighting opened this issue Jul 26, 2021 · 2 comments
Open

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

SyhFighting opened this issue Jul 26, 2021 · 2 comments

Comments

@SyhFighting
Copy link

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
Copy link
Owner

zh-plus commented Jul 27, 2021

  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
Copy link
Author

thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants