Open gngdb opened 2 years ago
Oh, actually those SMPL-H files are already .npz
obviously models/smplh_raw/female/model.npz
. Does that mean they don't need to be merged with this tool?
The error above comes from trying to open a .npz
file as a .pkl
. It seems like they do still need to be merged however. I was able to get it to merge by editing merge_smplh_mano.py
to open an .npz
. Here's what I ended up with: https://gist.github.com/gngdb/ac9084c254c5f29816da490d4f387d63
I can't verify that I'm producing exactly the right file though. I had to cast the output_data
variable to be a dictionary because in the original code .copy()
was called on whatever was loaded from the pickle file. I'm not sure what class that object would be because .copy()
is not supported as a method on the standard Python datatypes as far as I know but it is a method that's supported by numpy arrays. But, numpy arrays' __getitem__
doesn't support strings. It's interacted with in a similar way to a dictionary though so it seemed to make sense.
Also, if it's supposed to be an .npz
file, why is it listed as a .pkl
file in this section of the wiki? https://github.com/vchoutas/smplx/blob/master/README.md#model-loading
After downloading the SMPL-H and MANO
.pkl
files I tried tomerge_smplh_mano.py
to create the required.npz
files.I can't find much information about this error online. I think it might be something to do with PyTorch version.