slowfast/datasets/ptv_datasets.py
def rgb2gray(x):
    """
    Convert clip frames from RGB mode to GRAYSCALE mode.
    Args:
        x (Tensor): A tensor of the clip's RGB frames with shape:
            (channel, time, height, width).

    Returns:
        x (Tensor): Converted tensor
    """
    return x[[0], ...]

    Convert clip frames from RGB mode to GRAYSCALE mode.
    Args:
        x (Tensor): A tensor of the clip's RGB frames with shape:
            (channel, time, height, width).

    Returns:
        x (Tensor): Converted tensor
    
Convert clip frames from RGB mode to GRAYSCALE mode.
Convert clip frames from RGB mode to GRAYSCALE mode .
def rgb2gray(x):
    return x[[0], ...]
def rgb2gray ( x ) : return x [ [ 0 ] , ... ]
Convert clip frames from RGB mode to GRAYSCALE mode.
Convert clip frames from RGB mode to GRAYSCALE mode .
"""
    Convert clip frames from RGB mode to GRAYSCALE mode.
    Args:
        x (Tensor): A tensor of the clip's RGB frames with shape:
            (channel, time, height, width).

    Returns:
        x (Tensor): Converted tensor
    """
x (Tensor): Converted tensor
x ( Tensor ) : Converted tensor
x
A tensor of the clip's RGB frames with shape:
(channel, time, height, width).
A tensor of the clip ' s RGB frames with shape : ( channel time height width ) .