854f604719b6a571e47ad3ca8b758cec4133d2f7,kornia/augmentation/random_generator/random_generator3d.py,,random_crop_generator3d,#Any#Any#Any#Any#Any#Any#Any#,318

Before Change


        z_start = _adapted_uniform((batch_size,), 0, z_diff[0], same_on_batch)
    else:
        x_start = _adapted_uniform((1,), 0, x_diff, same_on_batch)
        y_start = _adapted_uniform((1,), 0, y_diff, same_on_batch)
        z_start = _adapted_uniform((1,), 0, z_diff, same_on_batch)

    crop_src = bbox_generator3d(
        x_start.view(-1),

After Change


        z_start = _adapted_uniform((batch_size,), 0, z_diff[0], same_on_batch).floor()
    else:
        x_start = _adapted_uniform((1,), 0, x_diff, same_on_batch).floor()
        y_start = _adapted_uniform((1,), 0, y_diff, same_on_batch).floor()
        z_start = _adapted_uniform((1,), 0, z_diff, same_on_batch).floor()

    crop_src = bbox_generator3d(
        x_start.to(device=_device, dtype=_dtype).view(-1),
        y_start.to(device=_device, dtype=_dtype).view(-1),
        z_start.to(device=_device, dtype=_dtype).view(-1),
        size[:, 2].to(device=_device, dtype=_dtype) - 1,
        size[:, 1].to(device=_device, dtype=_dtype) - 1,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: arraiy/torchgeometry
Commit Name: 854f604719b6a571e47ad3ca8b758cec4133d2f7
Time: 2021-01-05
Author: sj8716643@126.com
File Name: kornia/augmentation/random_generator/random_generator3d.py
Class Name:
Method Name: random_crop_generator3d


Project Name: arraiy/torchgeometry
Commit Name: d7efcdf78ef3d0f15b0ac737f049ffc3c2f4fc87
Time: 2020-11-02
Author: sj8716643@126.com
File Name: kornia/augmentation/random_generator/random_generator3d.py
Class Name:
Method Name: random_perspective_generator3d


Project Name: arraiy/torchgeometry
Commit Name: d7efcdf78ef3d0f15b0ac737f049ffc3c2f4fc87
Time: 2020-11-02
Author: sj8716643@126.com
File Name: kornia/augmentation/random_generator/random_generator.py
Class Name:
Method Name: random_perspective_generator