mrhaiyiwang / Smplx2FBX

based on FBX SDK Python 2020.2 for scientific research purpose only bounded by license: https://smpl-x.is.tue.mpg.de/modellicense
GNU General Public License v2.0
50 stars 7 forks source link

Animating from Video extracted SMPL data #1

Open MJohn2 opened 2 years ago

MJohn2 commented 2 years ago

Hi,

Appreciate your work on this before the blender option was created for SMPL-X. I wanted to create a FBX using this library rather than the blender option as I'm having some issues using it on Ubuntu.

Can i ask, where / how you created the data you used to create the JointsSequence.Json and AdjustJointsLoc.txt? Was there another library you used which exported to these files?

I can see that other methods use an existing FBX model and modify the skeleton positions for the animation frames. My understanding is that I could use this library and just supply my own joints sequence to animate. I'm using either SMPL or SMPL-X from the PyMAF repo (which ever gets me a FBX) and trying to find a method of exporting a FBX from output such as [here]:(https://github.com/HongwenZhang/PyMAF/blob/abb8b3f4ed9df1ca8c71bcf852f64af76757925e/apps/demo_smplx.py#L357)

pred_results = { 'pred_cam': pred_cam, 'orig_cam': orig_cam, 'orig_cam_t': camera_translation, 'verts': pred_verts, 'smplx_verts': pred_smplx_verts, 'pose': pred_pose, 'betas': pred_betas, 'joints3d': pred_joints3d, 'joints2d': joints2d, 'bboxes': bboxes, 'frame_ids': frames, 'person_ids': person_ids, 'smplx_params': smplx_params, } Note: I understand this is multiple people but I have modified it to extract the single person we want to use.

Thanks in advance!

Keysmis commented 1 year ago

@MJohn2 Hi~, do you find it?