MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / __init__

Method __init__

PATH/core/augmentation.py:445–458  ·  view source on GitHub ↗
(self, height, width, re,bri,contrast,brightness_delta=16,contrast_range=(0.8, 1.2), vit=False)

Source from the content-addressed store, hash-verified

443
444class 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]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected