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

Function _flip_axis_angle

detrsmpl/data/datasets/pipelines/transforms.py:241–251  ·  view source on GitHub ↗

Flip axis_angle horizontally. Args: r (np.ndarray([3])) Returns: f_flipped

(r)

Source from the content-addressed store, hash-verified

239
240
241def _flip_axis_angle(r):
242 """Flip axis_angle horizontally.
243
244 Args:
245 r (np.ndarray([3]))
246 Returns:
247 f_flipped
248 """
249 dim_flip = np.array([1, -1, -1], dtype=r.dtype)
250 r = r * dim_flip
251 return r
252
253
254def _flip_hand_pose(r_pose, l_pose):

Callers 1

__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected