Skip to contents

Calls torchvision::transform_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.

Construction

po("augment_crop"")

Parameters

IdTypeDefaultLevelsRange
topinteger-\([1, \infty)\)
leftinteger-\([1, \infty)\)
heightinteger-\([0, \infty)\)
widthinteger-\([0, \infty)\)
stagescharacter-train, predict, both-
affect_columnsuntypedselector_all()-