-
Notifications
You must be signed in to change notification settings - Fork 29
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
change the suface_model type from smplx to smpl #4
Comments
the length of
modify the smpl pose_body_ids from |
the problem is at the
|
the blender output mesh result is like #5 , the pose information is lost with correct shape and orientation. |
Hi, This is super helpful, and I am trying to recreate this currently. To my understanding, you downloaded the SMPL python model files, and then restructured them into the As part of this process, I renamed the SMPL pkl files from the original |
It seems the requisite import pickle
import numpy
import scipy
with open('./support_files/smpl/male/model.pkl', 'rb') as f:
u = pickle._Unpickler(f)
u.encoding = 'latin1'
male_smpl_pkl = u.load()
# print(male_smpl_pkl)
npz = {}
for k,v in male_smpl_pkl.items():
if type(v) == np.ndarray:
npz[k] = v
elif type(v) == scipy.sparse.csc.csc_matrix:
npz[k] = v.todense().astype(np.float32)
else: # for strings and chumpy arrays
npz[k] = np.array(v)
np.savez('./support_files/smpl/male/model.npz', **npz) |
the code can work normally when the model type is smplx.
and now I try to fit the smpl params instead of the smplx following the smplx moshpp process.
at first I donwloaded the smpl basic models, and put them under
support_files/smpl
directory, then change thesurface_model.type
from smplx to smpl, and addedopt_weights.smpl
config which is a copy of smplx as below.the error when I run the mosh job(task)
The text was updated successfully, but these errors were encountered: