Minor changes
A.Rotate
andA.ShiftScaleRotate
now support new rotation method for bounding boxes,ellipse
. (#1203 by @victor1cea)A.Rotate
now supports new argumentcrop_border
. If set to True, the rotated image will be cropped as much as possible to eliminate pixel values at the edges that were not well defined after rotation. (#1214 by @bonlime)- Tests that use multiprocessing now run much faster (#1218 by @Dipet)
- Improved type hints (#1219 by @Dipet )
- Fixed a deprecation warning in
match_histograms
. (#1121 by @BloodAxe)
Bugfixes
A.CropNonEmptyMaskIfExists
modified the first element ofmasks
in-place. Now, this behavior is fixed andA.CropNonEmptyMaskIfExists
doesn't do in-place modification of input masks. (#1193 by @ORippler).- Albumentations now correctly serialized and desirealized
fill_value
andmask_fill_value
parameters forA.GridDropout
. (#1191 by @victor1cea) A.ColorJitter
now correctly works withA.ReplayCompose
. (#1199 by @zakajd)- Fixed incorrect behavior of
A.ColorJitter
fornp.float32
input images whencontrast
is set to 0 (previously, all values were set to 0.5 instead of using the average value).. (#1207 by @Dipet) A.Rotate
,A.Affine
andA.ShiftScaleRotate
now do rotation in the same way. Fixed incorrect rotation angle forA.Affine
.A.Rotate
andA.ShiftScaleRotate
now correctly rotate the keypoints 90 degrees and don't leave black lines around the edges of the image. (#1091 by @Dipet )