SangHunHan92 / 2K2K

Official Code and Dataset for "High-fidelity 3D Human Digitization from Single 2K Resolution Images" (CVPR 2023 Highlight)
https://sanghunhan92.github.io/conference/2K2K/
Other
212 stars 5 forks source link

How to align 2K2K scans with SMPL-X? #13

Open azuxmioy opened 9 months ago

azuxmioy commented 9 months ago

Hello,

Thanks for updating the dataset. I've tried the latest SMPL-X parameters in the dataset repo.

I used the following code to create the body mesh

body_model = SMPLX(model_path=os.path.join(MODEL_PATH,'smplx'), use_face_contour=True, use_pca=False, gender='neutral')
smpl_data = json.load(open(os.path.join(smplx_folder, smpl_file)))
output = body_model(  global_orient= torch.tensor(smpl_data['global_orient']).unsqueeze(0).contiguous(),
                          transl = torch.tensor(smpl_data['transl']).unsqueeze(0).contiguous(),
                          body_pose = torch.tensor(smpl_data['body_pose']).unsqueeze(0).contiguous(),
                          betas = torch.tensor(smpl_data['betas']).unsqueeze(0).contiguous(),
                          jaw_pose=torch.tensor(smpl_data['jaw_pose']).unsqueeze(0).contiguous(),
                          left_hand_pose = torch.tensor(smpl_data['left_hand_pose']).unsqueeze(0).contiguous(),
                          right_hand_pose = torch.tensor(smpl_data['right_hand_pose']).unsqueeze(0).contiguous(),
                          expression=torch.tensor(smpl_data['expression']).unsqueeze(0).contiguous(),
                          return_verts=True
                        )

However, there are still translation and rotation offsets between the PLY scans and the SMPLX body mesh.

Screen Shot 2023-09-28 at 11 36 38 PM

Also, it seems that the scale (0.986) is not correct. Could you please describe how you registered the body model parameters?

Thank you very much.

fishfishson commented 7 months ago

@azuxmioy Hi, I have met with the same problem. Have you found the solution to this misalignment?

fengq1a0 commented 2 months ago

@fishfishson Hi, I also have the same problem. Have you found any solution? (the given SMPL mesh in the .obj file is 170m tall, however, the mesh in the .ply file is only about 1m)

fishfishson commented 2 months ago

I have no idea. It seems like scans are rescaled for privacy protection.


发件人: fengq1a0 @.> 发送时间: 2024年4月24日 14:15 收件人: SangHunHan92/2K2K @.> 抄送: YU Zhiyuan @.>; Mention @.> 主题: Re: [SangHunHan92/2K2K] How to align 2K2K scans with SMPL-X? (Issue #13)

@fishfishsonhttps://github.com/fishfishson Hi, I also have the same problem. Have you found any solution? (the given SMPL mesh in the .obj file is 170m tall, however, the mesh in the .ply file is only about 1m)

― Reply to this email directly, view it on GitHubhttps://github.com/SangHunHan92/2K2K/issues/13#issuecomment-2074147468, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG3KC7WHNANWR3YZJILPYNTY65EXHAVCNFSM6AAAAAA5LTOUJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZUGE2DONBWHA. You are receiving this because you were mentioned.