torchvision 0.8.0.9000
  • Examples
    • mnist-mlp
    • mnist-cnn
    • mnist-dcgan
    • tinyimagenet-alexnet
    • style-transfer
    • texture-nca
    • fcnresnet
  • Reference
  • Changelog

Horizontally flip a PIL Image or Tensor

Source: R/transforms-generics.R
transform_hflip.Rd

Horizontally flip a PIL Image or Tensor

transform_hflip(img)

Arguments

img

A magick-image, array or torch_tensor.

See also

Other unitary_transforms: transform_adjust_brightness(), transform_adjust_contrast(), transform_adjust_gamma(), transform_adjust_hue(), transform_adjust_saturation(), transform_affine(), transform_center_crop(), transform_convert_image_dtype(), transform_crop(), transform_grayscale(), transform_linear_transformation(), transform_normalize(), transform_pad(), transform_perspective(), transform_resize(), transform_rgb_to_grayscale(), transform_rotate(), transform_to_tensor(), transform_vflip()

Contents

Developed by Daniel Falbel.

Site built with pkgdown 2.2.0.