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

Method __init__

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

Source from the content-addressed store, hash-verified

598## Time: 20200909
599class NoneAugmentation(object):
600 def __init__(self, height, width):
601 normalizer = T.Normalize(mean=[0.485, 0.456, 0.406],
602 std=[0.229, 0.224, 0.225])
603
604 self.train_transformer = T.Compose([
605 T.Resize((height, width)),
606 T.ToTensor(),
607 normalizer,
608 ])
609
610 def __call__(self, img):
611 ## transform

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected