New augmentations
TemplateTransform
. This transform allows the blending of an input image with specified templates. (#572 by @akarsakov )PixelDistributionAdaptation
. A new domain adaptation augmentation. It fits a simple transform on both the original and reference image, transforms the original image with transform trained on this image, and performs inverse transformation using transform fitted on the reference image. See the examples of this transform in thequdida
repository. (#959 by @arsenyinfo)
Minor changes:
LongestMaxSize
andSmallestMaxSize
now can also accept a list of sizes as theirmax_size
argument and the actualmax_size
value will be sampled randomly from this list. (#930 by @kmistry-wx )A.Affine
now acceptsmask_interpolation
as a parameter. (#975 by @dskkato )A.RandomRain
now alters brightness in HSV space instead of HLS space to prevent image corruption. (#990 by @ErlingLie)- Albumentations now raises
ValueError
if bbox_params is not specified and bbox transformation is called (#1013 by @VirajBagal) CoarseDropout
can now set the height and width of holes based on the fraction of original image height and width (#1014 by @VirajBagal )ElasticTransform
got performance optimizations. (#1004 by @b0nce)
Bugfixes
- Fixed a bug when
CropNonEmptyMaskIfExists
thrown an error when it was used with a keypoint even though keypoints were mentioned as a correct target. (#986 by @GalDude33 ) - Fixed KeyError with
RandomCropNearBBox
when it received values withx_min <= 0
ory_min <= 0
(#993 by @Dipet )