KosukeFukazawa / smpl2bvh

This repository contains an example script to convert from a SMPL model to a bvh file.
MIT License
123 stars 13 forks source link

error when try convert! #7

Open polidox2 opened 7 months ago

polidox2 commented 7 months ago

File "C:\Users\admin\stable-diffusion-webui\smpl2bvh-main\smpl2bvh.py", line 169, in smpl2bvh(model_path=args.model_path, model_type=args.model_type, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\admin\stable-diffusion-webui\smpl2bvh-main\smpl2bvh.py", line 81, in smpl2bvh model = smplx.create(model_path=model_path, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\smplx\body_models.py", line 2400, in create return SMPL(model_path, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\smplx\body_models.py", line 137, in init data_struct = Struct(pickle.load(smpl_file, ^^^^^^^^^^^^^^^^^^^^^^ _pickle.UnpicklingError: invalid load key, 'y'.

Hello,

I am having this error... please any help? followed all instructions.

Thank you!!

KosukeFukazawa commented 7 months ago

Hi, polidox2. Thank you for your interest! Could you show me your input arguments?

polidox2 commented 7 months ago

Hi here is the input " python smpl2bvh.py --gender MALE --poses ${C:\Users\admin\OneDrive\Documents\test.pkl} --fps 60 --output ${C:\Users\admin\OneDrive\Documents} --mirror"

and here is the test file: https://mega.nz/file/F1J2hIxQ#JtfMNKTGuKgAjmyKdpGtu0O5QeJ2evKaBPnMXMxpZE4

thank you.

KosukeFukazawa commented 7 months ago

From the error, it appears that the SMPL model file is not loaded correctly. Could you try to append argument --model_path $PATH_TO_YOUR_SMPL_MODEL Or could you rename and place the SMPL model as shown in the following text file https://github.com/KosukeFukazawa/smpl2bvh/blob/main/data/smpl/smpl/smpl.txt