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

Understanding RandomPerspective In PyTorch Transformations

RandomPerspective() can do perspective transformation for zero or more images. It has 4 arguments: distortion_scale (default:0.5), p (default:0.5), interpolation (default:BILINEAR) and fill (default:0).

Buy Me a Coffee☕
*Memos:

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

RandomPerspective() can do perspective transformation for zero or more images as shown below:
*Memos:

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

It can do perspective transformation.
It must be 0 <= x <= 1.


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

It's the probability of wh...