(self, img, lbl)
return F.resize(img, self.size, self.interpolation), F.resize(lbl, self.size, Image.NEAREST)
Args:
            img (PIL Image): Image to be scaled.
        Returns:
            PIL Image: Rescaled image.
Args:
            img (PIL Image): Image to be scaled.
        Returns:
            PIL Image: Rescaled image.
Args : img ( PIL Image ) : Image to be scaled . Returns : PIL Image : Rescaled image .
def __call__(self, img, lbl):
        """
        Args:
            img (PIL Image): Image to be scaled.
        Returns:
            PIL Image: Rescaled image.
        """
        return F.resize(img, self.size, self.interpolation), F.resize(lbl, self.size, Image.NEAREST)
def __call__ ( self , img , lbl ) : return F . resize ( img , self . size , self . interpolation ) , F . resize ( lbl , self . size , Image . NEAREST )