Closed Alex-web100 closed 2 years ago
I am getting the same error. How did you solve it @Alex-web100 ?
Hello! I don't have very detailed notes on how I fixed it, but I did write down that it ended up being an issue with the way the files on my machine were structured. I would recommend checking that your folder structure looks similar to the one outlined here, and also to ensure that you have the correct file path entered in the config file – for me it needed to be adjusted.
I see. I solved this problem by commenting out the following lines from the build_layer()
function in smplx/body_models.py
:
else:
model_type = osp.basename(model_path).split('_')[0].lower()
because it was incorrectly changing the value of variable model_type
to 'body'
, whereas the original value of model_type
passed to the build_layer()
function was correctly set (to either of 'smpl/smplh/smplx'
)
@Alex-web100 Thanks for the prompt reply. The stuff you mentioned about the setting the directory structure right: I found it useful to resolve the following error that I encountered:
ImportError: attempted relative import with no known parent package
I see! Glad I could be helpful :)
Hi, just wanted to provide the correct solution to this issue. This error happens if we do not create the body_models
folder under transfer_data
. So the solution is to simply create the transfer_data/body_models
folder.
Hello, when trying to run the SMPL to SMPLX transfer, I encounter the following error
Does anyone know what might be causing this issue? I am trying to convert a folder of .ply files. Thank you!