MCPcopy Create free account
hub / github.com/MotrixLab/MotionDiffuse / qeuler_np

Function qeuler_np

text2motion/utils/quaternion.py:140–146  ·  view source on GitHub ↗
(q, order, epsilon=0, use_gpu=False)

Source from the content-addressed store, hash-verified

138
139
140def qeuler_np(q, order, epsilon=0, use_gpu=False):
141 if use_gpu:
142 q = torch.from_numpy(q).cuda().float()
143 return qeuler(q, order, epsilon).cpu().numpy()
144 else:
145 q = torch.from_numpy(q).contiguous().float()
146 return qeuler(q, order, epsilon).numpy()
147
148
149def qfix(q):

Callers

nothing calls this directly

Calls 1

qeulerFunction · 0.85

Tested by

no test coverage detected