ab9c4f8474ca744c7e67822fa21d408d0b0ae2d0,kornia/augmentation/functional.py,,apply_adjust_contrast,#Any#Any#Any#,590

Before Change


    Returns:
        torch.Tensor: Adjusted image.
    
    if return_transform:
        raise NotImplementedError
    return adjust_contrast(input, params["contrast_factor"].type_as(input))


def apply_adjust_saturation(input: torch.Tensor, params: Dict[str, torch.Tensor],
                            return_transform: bool = False):

After Change


    Returns:
        torch.Tensor: Adjusted image.
    
    input = _transform_input(input)
    _validate_input_dtype(input, accepted_dtypes=[torch.float16, torch.float32, torch.float64])

    transformed = adjust_contrast(input, params["contrast_factor"].to(input.dtype))

    if return_transform:
        identity: torch.Tensor = torch.eye(3, device=input.device, dtype=input.dtype).repeat(input.shape[0], 1, 1)
        return transformed, identity

    return transformed


def apply_adjust_saturation(input: torch.Tensor, params: Dict[str, torch.Tensor],
                            return_transform: bool = False):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 26

Instances


Project Name: arraiy/torchgeometry
Commit Name: ab9c4f8474ca744c7e67822fa21d408d0b0ae2d0
Time: 2020-04-18
Author: sj8716643@126.com
File Name: kornia/augmentation/functional.py
Class Name:
Method Name: apply_adjust_contrast


Project Name: arraiy/torchgeometry
Commit Name: ab9c4f8474ca744c7e67822fa21d408d0b0ae2d0
Time: 2020-04-18
Author: sj8716643@126.com
File Name: kornia/augmentation/functional.py
Class Name:
Method Name: apply_adjust_saturation


Project Name: arraiy/torchgeometry
Commit Name: ab9c4f8474ca744c7e67822fa21d408d0b0ae2d0
Time: 2020-04-18
Author: sj8716643@126.com
File Name: kornia/augmentation/functional.py
Class Name:
Method Name: apply_adjust_hue


Project Name: arraiy/torchgeometry
Commit Name: ab9c4f8474ca744c7e67822fa21d408d0b0ae2d0
Time: 2020-04-18
Author: sj8716643@126.com
File Name: kornia/augmentation/functional.py
Class Name:
Method Name: apply_adjust_brightness


Project Name: arraiy/torchgeometry
Commit Name: ab9c4f8474ca744c7e67822fa21d408d0b0ae2d0
Time: 2020-04-18
Author: sj8716643@126.com
File Name: kornia/augmentation/functional.py
Class Name:
Method Name: apply_adjust_gamma


Project Name: arraiy/torchgeometry
Commit Name: ab9c4f8474ca744c7e67822fa21d408d0b0ae2d0
Time: 2020-04-18
Author: sj8716643@126.com
File Name: kornia/augmentation/functional.py
Class Name:
Method Name: apply_adjust_contrast