object-popup
object-popup copied to clipboard
Error in Conversion of GRAB data from SMPL-X to SMPL+H
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!
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
.
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
Hey @shani1610, is this issue resolved? facing the same issue :)