Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine SMPL-X #8

Open
Helen-liang opened this issue Apr 25, 2024 · 3 comments
Open

Refine SMPL-X #8

Helen-liang opened this issue Apr 25, 2024 · 3 comments

Comments

@Helen-liang
Copy link

Very nice work! In your repo, you mentioned that "finetuned InstantAvatar pre-processed poses to get SMPL-X fits.", could you release the finetune code? How to refine the SMPL-X parameters?

@david-svitov
Copy link
Owner

Hi! We refined SMPL-X as follows:

  1. First we converted SMPL to SMPL-X using this code: https://github.com/vchoutas/smplx/blob/main/config_files/smpl2smplx.yaml
  2. We then used SMPLify-x to refine the SMPL-X parameters: https://github.com/vchoutas/smplify-x

To do this, we froze all the joints except the hand joints and finetuned them.

@haoz19
Copy link

haoz19 commented Jun 4, 2024

Hi,

Thanks for the instruction!

I understand we should follow

python -m transfer_model --exp-cfg config_files/smpl2smplx.yaml

to convert SMPL to SMPL-X.

While I'm so sorry, I'm still a little confused about:
How to refine the SMPL-X parameters.
Why not directly use

python smplifyx/main.py --config cfg_files/fit_smplx.yaml 
    --data_folder DATA_FOLDER 
    --output_folder OUTPUT_FOLDER 
    --visualize="True/False"
    --model_folder MODEL_FOLDER
    --vposer_ckpt VPOSER_FOLDER
    --part_segm_fn smplx_parts_segm.pkl

to fix the image with the SMPLify-x model?

Thanks a lot for your instruction!

@david-svitov
Copy link
Owner

We used pre-trained SMPL models from the dataset. Therefore, we first converted them into SMPL-X, and then finetuned only the position of the hands. So that the rest of the body matches the original SMPL.

If your task does not need to use existing SMPLs, then it is better to just train SMPL-X as you suggest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants