mlr_pipeopsaugment_resized_crop function

Resized Crop Augmentation

Resized Crop Augmentation

Calls torchvision::transform_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
topinteger-(Inf,Inf)(-Inf, Inf)
leftinteger-(Inf,Inf)(-Inf, Inf)
heightinteger-(Inf,Inf)(-Inf, Inf)
widthinteger-(Inf,Inf)(-Inf, Inf)
sizeuntyped--
interpolationinteger2[0,3][0, 3]
stagescharacter-train, predict, both-
affect_columnsuntypedselector_all()-