(self, div=True)
| 350 | """ Converts a PIL.Image (RGB) or numpy.ndarray (H x W x C) in the range [0, 255] |
| 351 | to a torch.FloatTensor of shape (C x H x W) in the range [0.0, 1.0] """ |
| 352 | def __init__(self, div=True): |
| 353 | self.div = div |
| 354 | |
| 355 | def __call__(self, img_dict): |
| 356 | # handle numpy array |
nothing calls this directly
no outgoing calls
no test coverage detected