mindspore.dataset.vision.VerticalFlip
- class mindspore.dataset.vision.VerticalFlip[source]
Flip the input image vertically.
- Raises
RuntimeError – If given tensor shape is not <H, W> or <…, H, W, C>.
- Supported Platforms:
CPU
Examples
>>> import mindspore.dataset as ds >>> import mindspore.dataset.vision as vision >>> >>> image_folder_dataset = ds.ImageFolderDataset("/path/to/image_folder_dataset_directory") >>> transforms_list = [vision.Decode(), vision.VerticalFlip()] >>> image_folder_dataset = image_folder_dataset.map(operations=transforms_list, ... input_columns=["image"])
- Tutorial Examples: