shlogg · Early preview
Super Kai (Kazuya Ito) @superkai_kazuya

RandomVerticalFlip In PyTorch Transformations

RandomVerticalFlip() flips images vertically with a probability of 0.5 by default. It can be used to augment datasets like OxfordIIITPet().

Buy Me a Coffee☕
*Memos:

My post explains RandomHorizontalFlip().
My post explains RandomRotation().
My post explains OxfordIIITPet().

RandomVerticalFlip() can flip zero or more images vertically as shown below:
*Memos:

The 1st argument for initialization is p(Optional-Default:0.5-Type:float). *It's the probability of whether each image is flipped or not.
The 1st argument is img(Required-Type:PIL Image or tensor/tuple/list(int or float)):
*Memos:

It must be 2D or 3D. For 3D, the deepest D must have one element.
Don't use img=.



v2 is recommended to use according to V1 or V2? Which one s...