yw0208 / W-HMR

W-HMR: Monocular Human Mesh Recovery in World Space with Weak-Supervised Calibration
https://yw0208.github.io/w-hmr/
MIT License
30 stars 0 forks source link

Saving .obj files and reading .pkl files #9

Open nshreyasvi opened 2 weeks ago

nshreyasvi commented 2 weeks ago

Hello,

Thank you for the amazing work. I was trying to run the --save_obj flag but it doesn't seem to save any output SMPL meshes. I further checked that there has been mesh_filename variable that has been defined in the code but it doesn't seem to use trimesh to save the output arrays in them.

I furthermore, tried to re-open the .pkl files. However, it seems that they don't follow the standard SMPL format and don't have any keys such as betas, body_pose or 'transl`. I wanted to know how can I obtain the output SMPL's through this library.

yw0208 commented 5 days ago

Hi, I just pushed new codes. Now you can use --save_obj to save SMPL meshes.

As for .pkl files, they contain output by W-HMR. You can refer to whmr.py. BTW, betas are shape, body_pose is global pose and transl can be calculated through pred_cam_t.