(self, image, label = None)
| 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}" |
nothing calls this directly
no outgoing calls
no test coverage detected