| transform_random_grayscale | R Documentation |
Convert image to grayscale with a probability of p.
transform_random_grayscale(img, p = 0.1)
img |
A |
p |
(float): probability that image should be converted to grayscale (default 0.1). |
Other random_transforms:
transform_color_jitter(),
transform_random_affine(),
transform_random_crop(),
transform_random_erasing(),
transform_random_horizontal_flip(),
transform_random_perspective(),
transform_random_resized_crop(),
transform_random_rotation(),
transform_random_vertical_flip()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.