(data, result_path, npy_path, caption)
| 18 | |
| 19 | |
| 20 | def plot_t2m(data, result_path, npy_path, caption): |
| 21 | joint = recover_from_ric(torch.from_numpy(data).float(), opt.joints_num).numpy() |
| 22 | joint = motion_temporal_filter(joint, sigma=1) |
| 23 | plot_3d_motion(result_path, paramUtil.t2m_kinematic_chain, joint, title=caption, fps=20) |
| 24 | if npy_path != "": |
| 25 | np.save(npy_path, joint) |
| 26 | |
| 27 | |
| 28 | def build_models(opt): |
no test coverage detected