6ee3f1b0d2a6ebadc9e2f664354594342ab0805d,kornia/augmentation/augmentation.py,RandomErasing,__init__,#RandomErasing#Any#Any#Any#Any#Any#Any#,285
Before Change
value: float = 0., return_transform: bool = False, same_on_batch: bool = False, p: float = 0.5
) -> None:
super(RandomErasing, self).__init__(p=p, return_transform=return_transform, same_on_batch=same_on_batch)
self.scale = cast(torch.Tensor, scale) if isinstance(scale, torch.Tensor) else torch.tensor(scale)
self.ratio = cast(torch.Tensor, ratio) if isinstance(ratio, torch.Tensor) else torch.tensor(ratio)
self.value: float = value
def __repr__(self) -> str:
After Change
self.size = size
self.resample = Resample.get(resample)
self.align_corners = align_corners
self.flags: Dict[str, torch.Tensor] = dict(
interpolation=torch.tensor(self.resample.value),
align_corners=torch.tensor(align_corners)
)
def __repr__(self) -> str:
repr = f"size={self.size}"
return self.__class__.__name__ + f"({repr}, {super().__repr__()})"
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: arraiy/torchgeometry
Commit Name: 6ee3f1b0d2a6ebadc9e2f664354594342ab0805d
Time: 2020-11-21
Author: justanhduc@users.noreply.github.com
File Name: kornia/augmentation/augmentation.py
Class Name: RandomErasing
Method Name: __init__
Project Name: arraiy/torchgeometry
Commit Name: 6ee3f1b0d2a6ebadc9e2f664354594342ab0805d
Time: 2020-11-21
Author: justanhduc@users.noreply.github.com
File Name: kornia/augmentation/augmentation.py
Class Name: RandomSolarize
Method Name: __init__
Project Name: mariogeiger/se3cnn
Commit Name: ae2d6eb40138e9fe09d65469c4b1c4a0fc4027c6
Time: 2019-09-06
Author: benmiller1315@gmail.com
File Name: se3cnn/SO3.py
Class Name:
Method Name: spherical_harmonics_xyz