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

Method __init__

PATH/core/augmentation.py:616–625  ·  view source on GitHub ↗
(self, height, width)

Source from the content-addressed store, hash-verified

614
615class ReidTestAugmentation(object):
616 def __init__(self, height, width):
617
618 normalizer = T.Normalize(mean=[0.485, 0.456, 0.406],
619 std=[0.229, 0.224, 0.225])
620
621 self.test_transformer = T.Compose([
622 T.Resize((height, width)),
623 T.ToTensor(),
624 normalizer,
625 ])
626
627 def __call__(self, img):
628 ## transform

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected