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

Not able to load the saved parameters #4

Open
SizheAn opened this issue May 23, 2022 · 1 comment
Open

Not able to load the saved parameters #4

SizheAn opened this issue May 23, 2022 · 1 comment

Comments

@SizheAn
Copy link

SizheAn commented May 23, 2022

Hi,

I successfully run the GUI, change the joint rotation, and saved the parameters. However, I cannot load the .pkl file.

Tried using

import pickle

file_name = '../subject2_Tpose.pkl'

with open(file_name, 'rb') as f:  
    subject2_Tpose = pickle.load(f)  
    

and

import torch

subject2_Tpose = torch.load(file_name)

Both return the same error:

UnpicklingError: A load persistent id instruction was encountered,
but no persistent_load function was specified.

The torch version is the same as where I ran the main.py. Any solution for this?

@Cxiada
Copy link

Cxiada commented Feb 23, 2023

作者用了joblib.dump(output_dict, filename)来保存模型参数。

from sklearn.externals import joblib
data= joblib.load('smpl.pkl')

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

2 participants