github albumentations-team/albumentations 1.0.1

latest releases: 1.4.6, 1.4.5, 1.4.4...
2 years ago

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

Don't miss a new albumentations release

NewReleases is sending notifications on new releases.