MCPcopy
hub / github.com/OpenMotionLab/MotionGPT / get_rifke

Function get_rifke

mGPT/data/humanml/scripts/motion_process.py:68–74  ·  view source on GitHub ↗

Local pose

(positions)

Source from the content-addressed store, hash-verified

66 r_rot = None
67
68 def get_rifke(positions):
69 '''Local pose'''
70 positions[..., 0] -= positions[:, 0:1, 0]
71 positions[..., 2] -= positions[:, 0:1, 2]
72 '''All pose face Z+'''
73 positions = qrot_np(np.repeat(r_rot[:, None], positions.shape[1], axis=1), positions)
74 return positions
75
76 def get_quaternion(positions):
77 skel = Skeleton(n_raw_offsets, kinematic_chain, "cpu")

Callers 2

extract_featuresFunction · 0.85
process_fileFunction · 0.85

Calls 1

qrot_npFunction · 0.85

Tested by

no test coverage detected