Skip to content

1.0.1

Compare
Choose a tag to compare
@ternaus ternaus released this 06 Jul 13:14
b6b7e34

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.

image_padding_2
image source