MCPcopy Index your code
hub / github.com/MotrixLab/MotionDiffuse / qinv_np

Function qinv_np

text2motion/utils/quaternion.py:23–25  ·  view source on GitHub ↗
(q)

Source from the content-addressed store, hash-verified

21
22
23def qinv_np(q):
24 assert q.shape[-1] == 4, 'q must be a tensor of shape (*, 4)'
25 return qinv(torch.from_numpy(q).float()).numpy()
26
27
28def qnormalize(q):

Callers 3

get_quaternionFunction · 0.85
get_cont6d_paramsFunction · 0.85
inverse_kinematics_npMethod · 0.85

Calls 1

qinvFunction · 0.85

Tested by

no test coverage detected