MCPcopy Create free account
hub / github.com/MotrixLab/FineMoGen / plot_t2m

Function plot_t2m

tools/visualize.py:25–35  ·  view source on GitHub ↗
(data, motion_length, result_path, npy_path, caption)

Source from the content-addressed store, hash-verified

23
24
25def 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
38def plot_interhuman(data, result_path, npy_path, caption):

Callers 1

mainFunction · 0.85

Calls 3

recover_from_ricFunction · 0.90
plot_3d_motionFunction · 0.90
motion_temporal_filterFunction · 0.85

Tested by

no test coverage detected