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

Function quaternion_to_cont6d

text2motion/utils/quaternion.py:314–317  ·  view source on GitHub ↗
(quaternions)

Source from the content-addressed store, hash-verified

312
313
314def quaternion_to_cont6d(quaternions):
315 rotation_mat = quaternion_to_matrix(quaternions)
316 cont_6d = torch.cat([rotation_mat[..., 0], rotation_mat[..., 1]], dim=-1)
317 return cont_6d
318
319
320def cont6d_to_matrix(cont6d):

Callers 1

recover_from_rotFunction · 0.85

Calls 1

quaternion_to_matrixFunction · 0.85

Tested by

no test coverage detected