mlr_pipeopsaugment_random_resized_crop function

Random Resized Crop Augmentation

Random Resized Crop Augmentation

Calls torchvision::transform_random_resized_crop, see there for more information on the parameters. The preprocessing is applied to each element of a batch individually.

Format

R6Class inheriting from PipeOpTaskPreprocTorch.

Parameters

IdTypeDefaultLevelsRange
sizeuntyped--
scaleuntypedc(0.08, 1)-
ratiountypedc(3/4, 4/3)-
interpolationinteger2[0,3][0, 3]
stagescharacter-train, predict, both-
affect_columnsuntypedselector_all()-