class
RandomGridShuffle
extends
GeometricTransform[ShuffleParam]RandomGridShuffle(grid: tuple[int, int] = (3, 3), p: float = 0.5)Split into a grid and shuffle the cells (Albumentations RandomGridShuffle).
Parameters
grid(int, int)= (3, 3)Number of cells (rows, cols).
pfloat= 0.5No description.
Used by 1
Constructors
1Instance methods
1Sample per-call random parameters for RandomGridShuffle.
Parameters
imgTensorImage tensor; not inspected, carried through for dispatch.
Returns
ShuffleParamCarries perm (a Fisher-Yates permutation of the
grid_h * grid_w cell indices in row-major order) and
grid (the cell-grid shape verbatim from the
constructor).