MCPcopy Create free account
hub / github.com/VCIP-RGBD/DFormer / random_mirror

Function random_mirror

utils/dataloader/dataloader.py:16–22  ·  view source on GitHub ↗
(rgb, gt, modal_x)

Source from the content-addressed store, hash-verified

14
15
16def random_mirror(rgb, gt, modal_x):
17 if random.random() >= 0.5:
18 rgb = cv2.flip(rgb, 1)
19 gt = cv2.flip(gt, 1)
20 modal_x = cv2.flip(modal_x, 1)
21
22 return rgb, gt, modal_x
23
24
25def random_scale(rgb, gt, modal_x, scales):

Callers 1

__call__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected