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

Function plot_interhuman

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

Source from the content-addressed store, hash-verified

36
37
38def plot_interhuman(data, result_path, npy_path, caption):
39 data = data.reshape(data.shape[0], 2, -1)
40 joints1 = data[:, 0, :22 * 3].reshape(-1, 22, 3)
41 joints2 = data[:, 1, :22 * 3].reshape(-1, 22, 3)
42 joints1 = motion_temporal_filter(joints1, sigma=4.5)
43 joints2 = motion_temporal_filter(joints2, sigma=4.5)
44 plot_siamese_3d_motion(save_path=result_path,
45 kinematic_tree=t2m_kinematic_chain,
46 mp_joints=[joints1, joints2],
47 title=caption,
48 fps=30)
49
50
51def parse_args():

Callers 1

mainFunction · 0.85

Calls 2

plot_siamese_3d_motionFunction · 0.90
motion_temporal_filterFunction · 0.85

Tested by

no test coverage detected