Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

No support for SMPL #82

Open
VisionaryMind opened this issue Jul 13, 2022 · 1 comment
Open

No support for SMPL #82

VisionaryMind opened this issue Jul 13, 2022 · 1 comment

Comments

@VisionaryMind
Copy link

Looking through the code, there appears at first to be support for SMPL, however the code does not seem to account for the parameters of that model. For example, SMPL models are issued in PKL files, however your AMASS data loader expects NPZ (for newer version such as SMPL-H / SMPL-X). I modified the code to load the PKL, but further along in the loading process, fairmotion is unable to parse the SMPL model:

  File "/home/visionarymind/eclipse-workspace/fairmotion/load_amass.py", line 19, in <module>
    bm = amass.load_body_model(bm_path,num_betas,model_type)
  File "/home/visionarymind/anaconda3/envs/fairmotion/lib/python3.7/site-packages/fairmotion/data/amass.py", line 130, in load_body_model
    num_betas=num_betas, 
  File "/home/visionarymind/anaconda3/envs/fairmotion/lib/python3.7/site-packages/human_body_prior/body_model/body_model.py", line 105, in __init__
    self.comp_register('shapedirs', torch.tensor(shapedirs, dtype=dtype), persistent=persistant_buffer)
ValueError: too many dimensions 'Select'

Before digging further, I wanted to see if you have tested SMPL data loads and what, if anything, could be done with this code to make it compatible with its models.

@VisionaryMind
Copy link
Author

I was eventually able to modify the code to support SMPL import, however, joints appear to be misoriented and root bone inverted. I'll continue to look at ways to fix this and will update here.

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

No branches or pull requests

1 participant