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

Method __call__

PATH/core/data/transforms/parsing_transforms.py:179–184  ·  view source on GitHub ↗
(self, image, label = None)

Source from the content-addressed store, hash-verified

177 self.std = std
178
179 def __call__(self, image, label = None):
180 image = image.astype(np.float32)
181 image = image / 255.0
182 image -= self.mean
183 image /= self.std
184 return image, label
185
186 def __repr__(self):
187 return f"Normalize with {self.mean} and {self.std}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected