b5c563a90f07c86b6939aad71e9506020f8b4eb6,imgaug/augmenters/blur.py,,blur_avg_,#Any#Any#,313

Before Change


    if k_height <= 0 or k_width <= 0 or (k_height, k_width) == (1, 1):
        return image

    iadt.gate_dtypes(
        image,
        allowed=["bool",
                 "uint8", "uint16", "int8", "int16",
                 "float16", "float32", "float64"],
        disallowed=["uint32", "uint64", "uint128", "uint256",
                    "int32", "int64", "int128", "int256",
                    "float96", "float128", "float256"],
        augmenter=None)

    input_dtype = image.dtype
    if image.dtype.name in ["bool", "float16"]:
        image = image.astype(np.float32, copy=False)

After Change


    if k_height <= 0 or k_width <= 0 or (k_height, k_width) == (1, 1):
        return image

    iadt.gate_dtypes_strs(
        {image.dtype},
        allowed="bool uint8 uint16 int8 int16 float16 float32 float64",
        disallowed="uint32 uint64 int32 int64 float128"
    )

    input_dtype = image.dtype
    if image.dtype in {iadt._BOOL_DTYPE, iadt._FLOAT16_DTYPE}:
        image = image.astype(np.float32, copy=False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: aleju/imgaug
Commit Name: b5c563a90f07c86b6939aad71e9506020f8b4eb6
Time: 2020-05-22
Author: kontakt@ajung.name
File Name: imgaug/augmenters/blur.py
Class Name:
Method Name: blur_avg_


Project Name: aleju/imgaug
Commit Name: b5c563a90f07c86b6939aad71e9506020f8b4eb6
Time: 2020-05-22
Author: kontakt@ajung.name
File Name: imgaug/augmenters/convolutional.py
Class Name:
Method Name: convolve_


Project Name: aleju/imgaug
Commit Name: b5c563a90f07c86b6939aad71e9506020f8b4eb6
Time: 2020-05-22
Author: kontakt@ajung.name
File Name: imgaug/augmenters/blur.py
Class Name:
Method Name: blur_gaussian_