bd21bb4fec8d10b257ceccc3d302abd6d5b7c7d5,kornia/augmentation/random_generator.py,,random_crop_size_generator,#Any#Any#Any#Any#,406

Before Change


    else:  // whole image
        w = torch.tensor(size[0])
        h = torch.tensor(size[1])
    return (h, w)


def random_rectangles_params_generator(
    batch_size: int,

After Change


    Returns:
        params Dict[str, torch.Tensor]: parameters to be passed for transformation.
    
    _joint_range_check(scale, "scale")
    _joint_range_check(ratio, "ratio")

    area = _adapted_uniform(
        (10,), scale[0] * size[0] * size[1], scale[1] * size[0] * size[1], same_on_batch)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: arraiy/torchgeometry
Commit Name: bd21bb4fec8d10b257ceccc3d302abd6d5b7c7d5
Time: 2020-08-26
Author: sj8716643@126.com
File Name: kornia/augmentation/random_generator.py
Class Name:
Method Name: random_crop_size_generator


Project Name: arraiy/torchgeometry
Commit Name: bd21bb4fec8d10b257ceccc3d302abd6d5b7c7d5
Time: 2020-08-26
Author: sj8716643@126.com
File Name: kornia/augmentation/random_generator.py
Class Name:
Method Name: random_solarize_generator


Project Name: arraiy/torchgeometry
Commit Name: bd21bb4fec8d10b257ceccc3d302abd6d5b7c7d5
Time: 2020-08-26
Author: sj8716643@126.com
File Name: kornia/augmentation/random_generator.py
Class Name:
Method Name: random_rotation_generator


Project Name: arraiy/torchgeometry
Commit Name: bd21bb4fec8d10b257ceccc3d302abd6d5b7c7d5
Time: 2020-08-26
Author: sj8716643@126.com
File Name: kornia/augmentation/random_generator.py
Class Name:
Method Name: random_motion_blur_generator