File tree 1 file changed +0
-19
lines changed 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -1506,25 +1506,6 @@ def equalize(img: Tensor) -> Tensor:
1506
1506
return F_t .equalize (img )
1507
1507
1508
1508
1509
- def gaussian_noise (img : Tensor , mean : float = 0.0 , var : float = 1.0 ) -> Tensor :
1510
- """Add gaussian noise to the image. Samples from `N(0, 1)` (standard normal distribution) by default.
1511
-
1512
- Args:
1513
- img (PIL Image or Tensor): Image on which equalize is applied.
1514
- mean (float): Mean of the sampled gaussian distribution. Default is 0.
1515
- var (float): Variance of the sampled gaussian distribution. Default is 1.
1516
-
1517
- Returns:
1518
- PIL Image or Tensor: An image that was equalized.
1519
- """
1520
- if not torch .jit .is_scripting () and not torch .jit .is_tracing ():
1521
- _log_api_usage_once (gaussian_noise )
1522
- if not isinstance (img , torch .Tensor ):
1523
- F_pil .gaussian_noise (img , mean , var )
1524
-
1525
- return F_t .gaussian_noise (img , mean , var )
1526
-
1527
-
1528
1509
def elastic_transform (
1529
1510
img : Tensor ,
1530
1511
displacement : Tensor ,
You can’t perform that action at this time.
0 commit comments