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

smplx parameters #7

Open
wayying opened this issue Apr 24, 2023 · 1 comment
Open

smplx parameters #7

wayying opened this issue Apr 24, 2023 · 1 comment

Comments

@wayying
Copy link

wayying commented Apr 24, 2023

To get the smpl parameters, I use whole-body codes,The final result is smpl-x param.json as follows,how do I change the parameter settings?

save SMPL-X parameters

root_pose = out['smplx_root_pose'].detach().cpu().numpy()[0]
body_pose = out['smplx_body_pose'].detach().cpu().numpy()[0]
lhand_pose = out['smplx_lhand_pose'].detach().cpu().numpy()[0]
rhand_pose = out['smplx_rhand_pose'].detach().cpu().numpy()[0]
jaw_pose = out['smplx_jaw_pose'].detach().cpu().numpy()[0]
shape = out['smplx_shape'].detach().cpu().numpy()[0]
expr = out['smplx_expr'].detach().cpu().numpy()[0]
with open('smplx_param.json', 'w') as f:
json.dump({'root_pose': root_pose.reshape(-1).tolist(),
'body_pose': body_pose.reshape(-1).tolist(),
'lhand_pose': lhand_pose.reshape(-1).tolist(),
'rhand_pose': rhand_pose.reshape(-1).tolist(),
'jaw_pose': jaw_pose.reshape(-1).tolist(),
'shape': shape.reshape(-1).tolist(),
'expr': expr.reshape(-1).tolist()}, f)

@hygenie1228
Copy link
Owner

hygenie1228 commented Apr 25, 2023

Unfortunately, ClothWild does not support SMPL-X human body model.
Since SMPL and SMPL-X have different mesh topologies, the reconstruction outputs can be implausible when using SMPL-X parameters.
To get the SMPL parameters, please run the [Pose2Pose model] (body only)
Then, refer [this] to save the parameters.
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