You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adjust the sharpness of the image or video with a given probability.
...
Parameters:
sharpness_factor (float) β How much to adjust the sharpness. Can be any non-negative number. 0 gives a blurred image, 1 gives the original image while 2 increases the sharpness by a factor of 2.
But setting -5 and 5 to sharpness_factor argument of RandomAdjustSharpness() sharpens and blurs images respectively as shown below:
So, the doc of RandomAdjustSharpness() should say something like below:
Sharpen or blur an image or video with a given probability.
...
Parameters:
sharpness_factor (float) β How much to adjust the sharpness. Can be any negative or non-negative number. x < 1 gives a blurred image, 1 gives the original image while 1 < x gives a sharpened image.
The text was updated successfully, but these errors were encountered:
π The doc issue
The doc of
RandomAdjustSharpness()
says below:But setting
-5
and5
tosharpness_factor
argument ofRandomAdjustSharpness()
sharpens and blurs images respectively as shown below:Suggest a potential alternative/fix
So, the doc of
RandomAdjustSharpness()
should say something like below:The text was updated successfully, but these errors were encountered: