Closed monajalal closed 3 years ago
##import pickle as cPickle
import pickle
and
##dd = pickle.load(open(fname_or_dict, 'r'), encoding='latin-1')
with open(fname_or_dict, 'rb') as f:
u = pickle._Unpickler(f)
u.encoding = 'latin1'
dd = u.load()
I have come to the realization that requiring the smpl_webuser package is a bit cumbersome. It's written to target python2 which causes the cPickle & this unpickling error. I will work to remove this dependency.
I have now removed the dependency. I've handwritten the code to set v_template for different quadruped classes rather than running it through the SMPL code. I'd be super grateful if you wouldn't mind testing the new code. 👍