slowfast/datasets/transform.py
def brightness_jitter(var, images):
    """
    Perfrom brightness jittering on the input images. The channels of images
    should be in order BGR.
    Args:
        var (float): jitter ratio for brightness.
        images (tensor): images to perform color jitter. Dimension is
            `num frames` x `channel` x `height` x `width`.
    Returns:
        images (tensor): the jittered images, the dimension is
            `num frames` x `channel` x `height` x `width`.
    """
    alpha = 1.0 + np.random.uniform(-var, var)
    img_bright = torch.ones(images.shape)  # was torch.zeros, changed it because it made zero sense
    images = blend(images, img_bright, alpha)
    images = images.clip(0, 1)
    return images

    Perfrom brightness jittering on the input images. The channels of images
    should be in order BGR.
    Args:
        var (float): jitter ratio for brightness.
        images (tensor): images to perform color jitter. Dimension is
            `num frames` x `channel` x `height` x `width`.
    Returns:
        images (tensor): the jittered images, the dimension is
            `num frames` x `channel` x `height` x `width`.
    
Perfrom brightness jittering on the input images. The channels of images
should be in order BGR.
Perfrom brightness jittering on the input images . The channels of images should be in order BGR .
def brightness_jitter(var, images):
    alpha = 1.0 + np.random.uniform(-var, var)
    img_bright = torch.ones(images.shape)  
    images = blend(images, img_bright, alpha)
    images = images.clip(0, 1)
    return images
def brightness_jitter ( var , images ) : alpha = 1.0 + np . random . uniform ( - var , var ) img_bright = torch . ones ( images . shape ) images = blend ( images , img_bright , alpha ) images = images . clip ( 0 , 1 ) return images
Perfrom brightness jittering on the input images.
Perfrom brightness jittering on the input images .
"""
    Perfrom brightness jittering on the input images. The channels of images
    should be in order BGR.
    Args:
        var (float): jitter ratio for brightness.
        images (tensor): images to perform color jitter. Dimension is
            `num frames` x `channel` x `height` x `width`.
    Returns:
        images (tensor): the jittered images, the dimension is
            `num frames` x `channel` x `height` x `width`.
    """ # was torch.zeros, changed it because it made zero sense
images (tensor): the jittered images, the dimension is
`num frames` x `channel` x `height` x `width`.
images ( tensor ) : the jittered images the dimension is ` num frames ` x ` channel ` x ` height ` x ` width ` .
var
jitter ratio for brightness.
jitter ratio for brightness .
images
images to perform color jitter. Dimension is
`num frames` x `channel` x `height` x `width`.
images to perform color jitter . Dimension is ` num frames ` x ` channel ` x ` height ` x ` width ` .