@@ -744,8 +744,8 @@ def adjust_brightness(img: Tensor, brightness_factor: float) -> Tensor:
744
744
745
745
Args:
746
746
img (PIL Image or Tensor): Image to be adjusted.
747
- If img is torch Tensor, it is expected to be in [..., 1 or 3, H, W] format,
748
- where ... means it can have an arbitrary number of leading dimensions.
747
+ If img is torch Tensor, it is expected to be in [..., 1 or 3, H, W] format,
748
+ where ... means it can have an arbitrary number of leading dimensions.
749
749
brightness_factor (float): How much to adjust the brightness. Can be
750
750
any non negative number. 0 gives a black image, 1 gives the
751
751
original image while 2 increases the brightness by a factor of 2.
@@ -764,8 +764,8 @@ def adjust_contrast(img: Tensor, contrast_factor: float) -> Tensor:
764
764
765
765
Args:
766
766
img (PIL Image or Tensor): Image to be adjusted.
767
- If img is torch Tensor, it is expected to be in [..., 3, H, W] format,
768
- where ... means it can have an arbitrary number of leading dimensions.
767
+ If img is torch Tensor, it is expected to be in [..., 3, H, W] format,
768
+ where ... means it can have an arbitrary number of leading dimensions.
769
769
contrast_factor (float): How much to adjust the contrast. Can be any
770
770
non negative number. 0 gives a solid gray image, 1 gives the
771
771
original image while 2 increases the contrast by a factor of 2.
@@ -784,8 +784,8 @@ def adjust_saturation(img: Tensor, saturation_factor: float) -> Tensor:
784
784
785
785
Args:
786
786
img (PIL Image or Tensor): Image to be adjusted.
787
- If img is torch Tensor, it is expected to be in [..., 3, H, W] format,
788
- where ... means it can have an arbitrary number of leading dimensions.
787
+ If img is torch Tensor, it is expected to be in [..., 3, H, W] format,
788
+ where ... means it can have an arbitrary number of leading dimensions.
789
789
saturation_factor (float): How much to adjust the saturation. 0 will
790
790
give a black and white image, 1 will give the original image while
791
791
2 will enhance the saturation by a factor of 2.
@@ -815,9 +815,9 @@ def adjust_hue(img: Tensor, hue_factor: float) -> Tensor:
815
815
816
816
Args:
817
817
img (PIL Image or Tensor): Image to be adjusted.
818
- If img is torch Tensor, it is expected to be in [..., 3, H, W] format,
819
- where ... means it can have an arbitrary number of leading dimensions.
820
- If img is PIL Image mode "1", "L", "I", "F" and modes with transparency (alpha channel) are not supported.
818
+ If img is torch Tensor, it is expected to be in [..., 3, H, W] format,
819
+ where ... means it can have an arbitrary number of leading dimensions.
820
+ If img is PIL Image mode "1", "L", "I", "F" and modes with transparency (alpha channel) are not supported.
821
821
hue_factor (float): How much to shift the hue channel. Should be in
822
822
[-0.5, 0.5]. 0.5 and -0.5 give complete reversal of hue channel in
823
823
HSV space in positive and negative direction respectively.
@@ -848,9 +848,9 @@ def adjust_gamma(img: Tensor, gamma: float, gain: float = 1) -> Tensor:
848
848
849
849
Args:
850
850
img (PIL Image or Tensor): PIL Image to be adjusted.
851
- If img is torch Tensor, it is expected to be in [..., 1 or 3, H, W] format,
852
- where ... means it can have an arbitrary number of leading dimensions.
853
- If img is PIL Image, modes with transparency (alpha channel) are not supported.
851
+ If img is torch Tensor, it is expected to be in [..., 1 or 3, H, W] format,
852
+ where ... means it can have an arbitrary number of leading dimensions.
853
+ If img is PIL Image, modes with transparency (alpha channel) are not supported.
854
854
gamma (float): Non negative real number, same as :math:`\gamma` in the equation.
855
855
gamma larger than 1 make the shadows darker,
856
856
while gamma smaller than 1 make dark regions lighter.
@@ -1286,8 +1286,8 @@ def adjust_sharpness(img: Tensor, sharpness_factor: float) -> Tensor:
1286
1286
1287
1287
Args:
1288
1288
img (PIL Image or Tensor): Image to be adjusted.
1289
- If img is torch Tensor, it is expected to be in [..., 1 or 3, H, W] format,
1290
- where ... means it can have an arbitrary number of leading dimensions.
1289
+ If img is torch Tensor, it is expected to be in [..., 1 or 3, H, W] format,
1290
+ where ... means it can have an arbitrary number of leading dimensions.
1291
1291
sharpness_factor (float): How much to adjust the sharpness. Can be
1292
1292
any non negative number. 0 gives a blurred image, 1 gives the
1293
1293
original image while 2 increases the sharpness by a factor of 2.
0 commit comments