def __call__(self, image, target):
    size = self.get_size(image.size)
    image = F.resize(image, size)
    target = target.resize(image.size)
    return (image, target)
def __call__(self, image, target):
    size = self.get_size(image.size)
    image = F.resize(image, size)
    target = target.resize(image.size)
    return (image, target)