Open TiantianWang opened 3 months ago
working on it...
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, you can try: gender='neutral', use_pca=False. The following code will solve your problem:
params = np.load('THuman2.1/smplx/0527/smplx_param.pkl', allow_pickle=True) m_smplx = smplx.SMPLX('bodyModels/smplx', gender='neutral', use_pca=False) smpl_out = m_smplx.forward( transl=torch.tensor(params['transl']), global_orient=torch.tensor(params['global_orient']), body_pose=torch.tensor(params['body_pose']), betas=torch.tensor(params['betas']), left_hand_pose=torch.tensor(params['left_hand_pose']), right_hand_pose=torch.tensor(params['right_hand_pose']), expression=torch.tensor(params['expression']), jaw_pose=torch.tensor(params['jaw_pose']), leye_pose=torch.tensor(params['leye_pose']), reye_pose=torch.tensor(params['reye_pose']) ) vertices = smpl_out.vertices.detach().cpu().numpy()[0] * params['scale'] m_model = trimesh.Trimesh(vertices=vertices, faces=m_smplx.faces, process=False) m_model.export('debug/smplx_0527.obj')
Dear all,
I have extracted the smplx mesh ('mesh_smplx_myself.obj') from the smplx_param.pkl. However it seems that the mesh extracted by myself is not aligned with the given mesh_smplx.obj. Please see the visualization and code below on 0527. Could you give some insight about how to extract the same mesh as mesh_smplx.obj from .pkl ?
Thanks