MCPcopy
hub / github.com/yerfor/GeneFacePlusPlus / convert_poses

Function convert_poses

modules/radnerfs/utils.py:264–270  ·  view source on GitHub ↗
(poses)

Source from the content-addressed store, hash-verified

262
263
264def convert_poses(poses):
265 # poses: [B, 4, 4]
266 # return [B, 3], 4 rot, 3 trans
267 out = torch.empty(poses.shape[0], 6, dtype=torch.float32, device=poses.device)
268 out[:, :3] = matrix_to_euler_angles(poses[:, :3, :3])
269 out[:, 3:] = poses[:, :3, 3]
270 return out
271
272
273

Callers 6

update_extra_stateMethod · 0.90
update_extra_stateMethod · 0.90
__getitem__Method · 0.90

Calls 1

matrix_to_euler_anglesFunction · 0.85

Tested by 2