(img, gt)
| 134 | |
| 135 | |
| 136 | def random_mirror(img, gt): |
| 137 | if random.random() >= 0.5: |
| 138 | img = cv2.flip(img, 1) |
| 139 | gt = cv2.flip(gt, 1) |
| 140 | |
| 141 | return ( |
| 142 | img, |
| 143 | gt, |
| 144 | ) |
| 145 | |
| 146 | |
| 147 | def random_rotation(img, gt): |
nothing calls this directly
no outgoing calls
no test coverage detected