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

about axis-angle output #111

Open
amituofo1996 opened this issue Sep 7, 2021 · 0 comments
Open

about axis-angle output #111

amituofo1996 opened this issue Sep 7, 2021 · 0 comments

Comments

@amituofo1996
Copy link

Hi, it is really a nice work.
I want to get anxis-angle format result.Following is my code.
with torch.no_grad():
pred_rotmat, pred_betas, pred_camera = model(norm_img.to(device))
pred_output = smpl(betas=pred_betas, body_pose=pred_rotmat[:,1:], global_orient=pred_rotmat[:,0].unsqueeze(1), pose2rot=False,return_full_pose=True)
pred_vertices = pred_output.vertices
pred_fullpose = pred_output.full_pose
homogen_matrot = F.pad(pred_rotmat.view(-1,3,3),[0,1])
pred_pose = tgm.rotation_matrix_to_angle_axis(homogen_matrot).contiguous().view(-1, 72)

i got pred_pose as my result,but it is wrong,I don't know why,will somebody could help me!

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

1 participant