(self, height, width, re,bri,contrast,brightness_delta=16,contrast_range=(0.8, 1.2), vit=False)
| 443 | |
| 444 | class ReidAugmentationCV2(object): |
| 445 | def __init__(self, height, width, re,bri,contrast,brightness_delta=16,contrast_range=(0.8, 1.2), vit=False): |
| 446 | self.normalizer = T.Normalize(mean=[0.485, 0.456, 0.406], |
| 447 | std=[0.229, 0.224, 0.225]) |
| 448 | # self.normalizer = T.Normalize(mean=[0.5, 0.5, 0.5], |
| 449 | # std=[0.5, 0.5, 0.5]) |
| 450 | self.height = height |
| 451 | self.width = width |
| 452 | self.padding_size = 10 |
| 453 | self.brightness_delta = brightness_delta |
| 454 | self.contrast_lower, self.contrast_upper = contrast_range |
| 455 | self.re = re |
| 456 | self.bri = bri |
| 457 | self.vit = vit |
| 458 | self.contrast = contrast |
| 459 | |
| 460 | def pad_images(self, img): |
| 461 | h, w = img.shape[:2] |
nothing calls this directly
no outgoing calls
no test coverage detected