(data, motion_length, result_path, npy_path, caption)
| 23 | |
| 24 | |
| 25 | def plot_t2m(data, motion_length, result_path, npy_path, caption): |
| 26 | joints = recover_from_ric(torch.from_numpy(data).float(), 22).numpy() |
| 27 | joints = motion_temporal_filter(joints, sigma=2.5) |
| 28 | plot_3d_motion(save_path=result_path, |
| 29 | motion_length=motion_length, |
| 30 | kinematic_tree=t2m_kinematic_chain, |
| 31 | joints=joints, |
| 32 | title=caption, |
| 33 | fps=20) |
| 34 | if npy_path is not None: |
| 35 | np.save(npy_path, joints) |
| 36 | |
| 37 | |
| 38 | def plot_interhuman(data, result_path, npy_path, caption): |
no test coverage detected