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

Method __init__

PATH/core/data/transforms/parsing_transforms.py:175–177  ·  view source on GitHub ↗
(self, mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])

Source from the content-addressed store, hash-verified

173
174class normalize:
175 def __init__(self, mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]):
176 self.mean = mean
177 self.std = std
178
179 def __call__(self, image, label = None):
180 image = image.astype(np.float32)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected