import os.path as osp import argparse import numpy as np import torch import pyrender import trimesh import smplx from tqdm.auto import tqdm, trange from pathlib import Path def main(model_folder, motion_file, model_type='smplx', ext='npz', gender='neutral', plot_joints=False, num_betas=10, sample_expression=True, num_expression_coeffs=10, use_face_contour=False): # open motion file motion = np.load(motion_file, allow_pickle=True) _motion = {} for k,v in motion.items(): if isinstance(v, np.ndarray): print(k, motion[k].shape, motion[k].dtype) if motion[k].dtype in ("