MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / flip_rotmat

Function flip_rotmat

detrsmpl/models/utils/SMPLX.py:201–209  ·  view source on GitHub ↗

Flip function. Flip rotmat.

(pose_rotmat)

Source from the content-addressed store, hash-verified

199
200
201def flip_rotmat(pose_rotmat):
202 """Flip function.
203
204 Flip rotmat.
205 """
206 rot_mats = pose_rotmat.reshape(-1, 9).clone()
207
208 rot_mats[:, [1, 2, 3, 6]] *= -1
209 return rot_mats.view_as(pose_rotmat)
210
211
212def find_joint_global_rotation(kin_chain, root_pose, body_pose):

Callers 2

__call__Method · 0.85
build_hand_meanMethod · 0.85

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected