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

W (joint regressor from vertex)? #44

Closed
wangzheallen opened this issue Mar 17, 2020 · 5 comments
Closed

W (joint regressor from vertex)? #44

wangzheallen opened this issue Mar 17, 2020 · 5 comments

Comments

@wangzheallen
Copy link

May I ask which specific model is the W in '3D Body Representation' part of the original paper to project M(\theta,\beta) to 3d key points and what is the architecture for that?

@ikvision
Copy link

M(\theta,\beta) returns a mesh in pred_vertices in

VIBE/lib/models/spin.py

Lines 381 to 388 in 17b1749

pred_output = self.smpl(
betas=pred_shape,
body_pose=pred_rotmat[:, 3:],
global_orient=pred_rotmat[:, :3],
pose2rot=True,
)
pred_vertices = pred_output.vertices

Given a mesh to calculate the 3d key joints it a sparse Matrix J_regressor multiplication
pred_joints = torch.matmul(J_regressor_batch, pred_vertices)

As illustrated in SMPL paper:
image

@wangzheallen
Copy link
Author

M(\theta,\beta) returns a mesh in pred_vertices in

VIBE/lib/models/spin.py

Lines 381 to 388 in 17b1749

pred_output = self.smpl(
betas=pred_shape,
body_pose=pred_rotmat[:, 3:],
global_orient=pred_rotmat[:, :3],
pose2rot=True,
)
pred_vertices = pred_output.vertices

Given a mesh to calculate the 3d key joints it a sparse Matrix J_regressor multiplication

pred_joints = torch.matmul(J_regressor_batch, pred_vertices)

As illustrated in SMPL paper:
image

Thanks for the reply!

@mkocabas
Copy link
Owner

Thanks @ikvision for the answer!

@ikvision
Copy link

ikvision commented Mar 26, 2020

@wangzheallen I wrote a detailed wiki on VIBE forward pass in https://ikvision.github.io/
I hope you find it useful

@wangzheallen
Copy link
Author

@wangzheallen I wrote a detailed wiki on VIBE forward pass in https://ikvision.github.io/
I hope you find it useful

Thanks! I will add your nice blogs to my https://github.com/wangzheallen/awesome-human-pose-estimation

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

3 participants