(self, size, mean=0, std=1.0)
Args:
            size: the size the of final image.
            mean: mean pixel value per channel.
Args:
            size: the size the of final image.
            mean: mean pixel value per channel.
Args : size : the size the of final image . mean : mean pixel value per channel .
def __init__(self, size, mean=0, std=1.0):
        """
        Args:
            size: the size the of final image.
            mean: mean pixel value per channel.
        """
        self.mean = mean
        self.size = size
        self.augment = Compose([
            ConvertFromInts(),
            PhotometricDistort(),
            RandomSampleCrop_v2(),
            RandomMirror(),
            ToPercentCoords(),
            Resize(self.size),
            SubtractMeans(self.mean),
            lambda img, boxes=None, labels=None: (img / std, boxes, labels),
            ToTensor(),
        ])
def __init__ ( self , size , mean = 0 , std = 1.0 ) : self . mean = mean self . size = size self . augment = Compose ( [ ConvertFromInts ( ) , PhotometricDistort ( ) , RandomSampleCrop_v2 ( ) , RandomMirror ( ) , ToPercentCoords ( ) , Resize ( self . size ) , SubtractMeans ( self . mean ) , lambda img , boxes = None , labels = None : ( img / std , boxes , labels ) , ToTensor ( ) , ] )