Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

transform_random_vertical_flip

Vertically flip an image randomly with a given probability


Description

The image can be a PIL Image or a torch Tensor, in which case it is expected to have [..., H, W] shape, where ... means an arbitrary number of leading dimensions

Usage

transform_random_vertical_flip(img, p = 0.5)

Arguments

img

A magick-image, array or torch_tensor.

p

(float): probability of the image being flipped. Default value is 0.5

See Also


torchvision

Models, Datasets and Transformations for Images

v0.3.0
MIT + file LICENSE
Authors
Daniel Falbel [aut, cre], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.