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

RandomVerticalFlip() In PyTorch

RandomVerticalFlip() flips an image randomly and vertically with a probability of 0 <= x <= 1. Use img as input and p for the flip probability. V2 is recommended over V1.

Buy Me a Coffee☕
*Memos:

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

RandomVerticalFlip() can flip an image randomly and vertically as shown below:
*Memos:

The 1st argument for initialization is p(Optional-Default:0.5-Type:int or float):
*Memos:

It's the probability of whether an image is flipped or not.
It must be 0 <= x <= 1.


The 1st argument is img(Required-Type:PIL Image or tensor(int)):
*Memos:

A tensor must be 2D or 3D.
Don't use img=.



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


from torchvision.datasets import Oxfo...