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

How to use saved .pkl parameters file? #5

Open
Ruid6 opened this issue Aug 4, 2022 · 0 comments
Open

How to use saved .pkl parameters file? #5

Ruid6 opened this issue Aug 4, 2022 · 0 comments

Comments

@Ruid6
Copy link

Ruid6 commented Aug 4, 2022

I have modified the smpl model and saved the pkl file,but i not load it in SMPL code.
`def ready_arguments(fname_or_dict):

if not isinstance(fname_or_dict, dict):
    #dd = pickle.load(open(fname_or_dict))
    dd = pickle.load(open(fname_or_dict,"rb"),encoding='iso-8859-1')
else:
    dd = fname_or_dict
    
backwards_compatibility_replacements(dd) `

UnpicklingError invalid load key, '\x27'. File "/home/lrd/data/lrd/body-model-visualizer-filer/SMPL_python_v.1.1.0/smpl/smpl_webuser/serialization.py", line 81, in ready_arguments dd = pickle.load(open(fname_or_dict,"rb"),encoding='iso-8859-1') File "/home/lrd/data/lrd/body-model-visualizer-filer/SMPL_python_v.1.1.0/smpl/smpl_webuser/serialization.py", line 117, in load_model dd = ready_arguments(fname_or_dict) File "/home/lrd/data/lrd/body-model-visualizer-filer/SMPL_python_v.1.1.0/smpl/smpl_webuser/hello_world/hello_smpl.py", line 48, in <module> m = load_model( '/home/lrd/data/lrd/body-model-visualizer-filer/abc.pkl' )

sometimes,it is other error. I don't konw how to use this saved parameters.

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

1 participant