(img, gt, length)
| 124 | |
| 125 | |
| 126 | def random_scale_with_length(img, gt, length): |
| 127 | size = random.choice(length) |
| 128 | sh = size |
| 129 | sw = size |
| 130 | img = cv2.resize(img, (sw, sh), interpolation=cv2.INTER_LINEAR) |
| 131 | gt = cv2.resize(gt, (sw, sh), interpolation=cv2.INTER_NEAREST) |
| 132 | |
| 133 | return img, gt, size |
| 134 | |
| 135 | |
| 136 | def random_mirror(img, gt): |
nothing calls this directly
no outgoing calls
no test coverage detected