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

Error in Conversion of GRAB data from SMPL-X to SMPL+H #3

Open
shani1610 opened this issue Jan 17, 2024 · 3 comments
Open

Error in Conversion of GRAB data from SMPL-X to SMPL+H #3

shani1610 opened this issue Jan 17, 2024 · 3 comments

Comments

@shani1610
Copy link

Hi,
While trying to run the conversion code i get the following error:
AttributeError: 'Struct' object has no attribute 'hands_componentsl'
Can you help me to solve it please?

more details:
I am using smplx 0.1.28 , omegaconf 2.3.0
I put the correspondences exactly the way you mention in transfer_data directory.
I'm running the main code from /object-popup/popup/utils/smplx2smplh
in this way:

python -m main -g ./../../../data/preprocessed/grab_smplh/ -s ./../../../data/body_models/smplx/models

the folder structures are as follow:

grab_smplh
├── grab
│   ├── s1
│   │   ├── airplane_fly_1.npz
│   │   ├── ...
│   ├── ...
│   ├── s10
├── tools
│   ├── object_meshes
│   │   ├── contact_meshes
│   │   │   ├── airplane.ply
│   │   │   ├── ...
│   ├── subject_meshes
│   ├── ...

for the models:

models
├── smpl
│   ├── SMPL_FEMALE.pkl
│   └── SMPL_MALE.pkl
│   └── SMPL_NEUTRAL.pkl
├── smplh
│   ├── SMPLH_FEMALE.pkl
│   └── SMPLH_MALE.pkl
├── mano
|   ├── MANO_RIGHT.pkl
|   └── MANO_LEFT.pkl
└── smplx
    ├── SMPLX_FEMALE.npz
    ├── SMPLX_FEMALE.pkl
    ├── SMPLX_MALE.npz
    ├── SMPLX_MALE.pkl
    ├── SMPLX_NEUTRAL.npz
    └── SMPLX_NEUTRAL.pkl

Thank you!

@ptrvilya
Copy link
Owner

Hi, this problem is likely caused by SMPL model files (there are a couple of similar issues in the SMPL-X repository). Make sure that you've downloaded the models from the corresponding pages, using the original SMPL+H model (not the extended AMASS version), and downloaded the file with correspondences smplx2smplh_deftrafo_setup.pkl.

@ChaerinMin
Copy link

ChaerinMin commented Feb 3, 2024

I had the same issue, but after I followed this instruction https://github.com/vchoutas/smplx/blob/main/tools/README.md it was resolved. I recommend you to do this

@praanjalmishra
Copy link

Hey @shani1610, is this issue resolved? facing the same issue :)

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

4 participants