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

FiveCrop() In PyTorch: Crops An Image Into 5 Parts

FiveCrop() crops an image into 5 parts. Size argument can be int or tuple/list(int) with height and width.

Buy Me a Coffee☕
*Memos:

My post explains CenterCrop().
My post explains RandomCrop() about size argument.
My post explains RandomResizedCrop() about size argument.
My post explains OxfordIIITPet().

FiveCrop() can crop an image into 5 parts(Top-left, Top-right, Bottom-left, Bottom-right and Center) as shown below:
*Memos:

The 1st argument for initialization is size(Required-Type:int or tuple/list(int) or size()):
*Memos:

It's [height, width].
It must be 1 <= x.
A tuple/list must be the 1D with 1 or 2 elements.
A single value(int or tuple/list(int)) means [size, size].


The 1st argument i...