examples/pytorch/semantic-segmentation/run_semantic_segmentation_no_trainer.py/PILToTensor/__call__
class PILToTensor:    def __call__(self, image, target):
        image = functional.pil_to_tensor(image)
        target = torch.as_tensor(np.array(target), dtype=torch.int64)
        return image, target