(
            brightness: Optional[List[float]],
            contrast: Optional[List[float]],
            saturation: Optional[List[float]],
            hue: Optional[List[float]])
return fn_idx, b, c, s, h
Get the parameters for the randomized transform to be applied on image.

        Args:
            brightness (tuple of float (min, max), optional): The range from which the brightness_factor is chosen
                uniformly. Pass None to turn off the transformation.
            contrast (tuple of float (min, max), optional): The range from which the contrast_factor is chosen
                uniformly. Pass None to turn off the transformation.
            saturation (tuple of float (min, max), optional): The range from which the saturation_factor is chosen
                uniformly. Pass None to turn off the transformation.
            hue (tuple of float (min, max), optional): The range from which the hue_factor is chosen uniformly.
                Pass None to turn off the transformation.

        Returns:
            tuple: The parameters used to apply the randomized transform
            along with their random order.
Get the parameters for the randomized transform to be applied on image.
Get the parameters for the randomized transform to be applied on image .
def get_params(
            brightness: Optional[List[float]],
            contrast: Optional[List[float]],
            saturation: Optional[List[float]],
            hue: Optional[List[float]]) -> Tuple[Tensor, Optional[
                float], Optional[float], Optional[float], Optional[float]]:
        """Get the parameters for the randomized transform to be applied on image.

        Args:
            brightness (tuple of float (min, max), optional): The range from which the brightness_factor is chosen
                uniformly. Pass None to turn off the transformation.
            contrast (tuple of float (min, max), optional): The range from which the contrast_factor is chosen
                uniformly. Pass None to turn off the transformation.
            saturation (tuple of float (min, max), optional): The range from which the saturation_factor is chosen
                uniformly. Pass None to turn off the transformation.
            hue (tuple of float (min, max), optional): The range from which the hue_factor is chosen uniformly.
                Pass None to turn off the transformation.

        Returns:
            tuple: The parameters used to apply the randomized transform
            along with their random order.
        """
        fn_idx = torch.randperm(4)

        b = None if brightness is None else float(
            torch.empty(1).uniform_(brightness[0], brightness[1]))
        c = None if contrast is None else float(
            torch.empty(1).uniform_(contrast[0], contrast[1]))
        s = None if saturation is None else float(
            torch.empty(1).uniform_(saturation[0], saturation[1]))
        h = None if hue is None else float(
            torch.empty(1).uniform_(hue[0], hue[1]))

        return fn_idx, b, c, s, h
def get_params ( brightness : Optional [ List [ float ] ] , contrast : Optional [ List [ float ] ] , saturation : Optional [ List [ float ] ] , hue : Optional [ List [ float ] ] ) -> Tuple [ Tensor , Optional [ float ] , Optional [ float ] , Optional [ float ] , Optional [ float ] ] : fn_idx = torch . randperm ( 4 ) b = None if brightness is None else float ( torch . empty ( 1 ) . uniform_ ( brightness [ 0 ] , brightness [ 1 ] ) ) c = None if contrast is None else float ( torch . empty ( 1 ) . uniform_ ( contrast [ 0 ] , contrast [ 1 ] ) ) s = None if saturation is None else float ( torch . empty ( 1 ) . uniform_ ( saturation [ 0 ] , saturation [ 1 ] ) ) h = None if hue is None else float ( torch . empty ( 1 ) . uniform_ ( hue [ 0 ] , hue [ 1 ] ) ) return fn_idx , b , c , s , h