Skip to content

crop2

2D Cropping.

This layer crops spatial dimensions (height and width).


Parameter

  • crops : Scalar or tuple of numbers.
    If scalar, the height and width are symmetrically cropped with the same value.
    If tuple has 2 numbers, the height and width are symetrically cropped with [crop_y, crop_x].
    If tuple has 4 numbers, the height and width are cropped with [crop_top, crop_bottom, crop_left, crop_right].