Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
23
def
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
28
def
qnormalize(q):
Callers
3
get_quaternion
Function · 0.85
get_cont6d_params
Function · 0.85
inverse_kinematics_np
Method · 0.85
Calls
1
qinv
Function · 0.85
Tested by
no test coverage detected