1.0.1
Added position argument to PadIfNeeded (#933 by @yisaienkov)
Possible values: center
top_left
, top_right
, bottom_left
, bottom_right
, with center
being the default value.
One possible use case for this feature is object detection where you need to pad an image to square, but you want predicted bounding boxes being equal to the bounding box of the unpadded image.