Open PawtingDev opened 5 months ago
Got it. I will check this problem.
We have noticed the issue of inconsistent parameter representations between the two batches of data before and after 526, and are working on it. Currently, the following code will solve your problem: params_ori = np.load('THuman2.1/smplx/0000/smplx_param.pkl' ,allow_pickle=True) m_smplx = smplx.SMPLX('E:/bodyModels/smplx', gender='male', use_pca=True, num_pca_comps=12) smpl_out = m_smplx.forward( transl=torch.tensor(params_ori['translation']).reshape([-1, 3]) / params_ori['scale'], global_orient=torch.tensor(params_ori['global_orient']), body_pose=torch.tensor(params_ori['body_pose']), betas=torch.tensor(params_ori['betas']), left_hand_pose=torch.tensor(params_ori['left_hand_pose']), right_hand_pose=torch.tensor(params_ori['right_hand_pose']), expression=torch.tensor(params_ori['expression']), jaw_pose=torch.tensor(params_ori['jaw_pose']), leye_pose=torch.tensor(params_ori['leye_pose']), reye_pose=torch.tensor(params_ori['reye_pose']) ) vertices = smpl_out.vertices.detach().cpu().numpy()[0] * params_ori['scale'] m_model = trimesh.Trimesh(vertices=vertices, faces=m_smplx.faces, process=False) m_model.export('debug/smplx_0000.obj' )
It seems the tranlstion is wrong, is there any update on this?
We've just updated the SMPL-X fittings and also provided the code for converting SMPL-X paras to meshes. Please checkout the readme for the newest download link.
Thanks for updating the parameters! It seems like "scale" is missing in the new released data. When I ran the the provided converting code, I got:
Traceback (most recent call last):
File "Thuman_released.py", line 30, in <module>
vertices = smpl_out.vertices.detach().cpu().numpy()[0] * params['scale']
KeyError: 'scale'
Is there somewhere to find the scale?
Thanks!
Just fixed, please download using the updated link on the webpage.
Maybe related issue: The 3D scans axes are different in new samples:
And their scale is also inconsistent:
Is this also updated on the last version? Then maybe I have an older download link :/
Maybe related issue: The 3D scans axes are different in new samples:
And their scale is also inconsistent:
Is this also updated on the last version? Then maybe I have an older download link :/
The scale of the meshs in different frames may be different, but the scale of the mesh and smplx in the same frame is the same.
Great work on extending the dataset to over 2k scans! But I encountered a problem while processing the updated THuman2.1. I imported a same set of data(0001) to blender. Above/selected smplx fit is from THuman2.1, and the below one is from THuman2.0. Scans from both dataset seem to be aligned, such misalignment between scan and its smpl-x fit do not exist in THuman2.0. And see also in meshlab.