You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
first of all thanks for one of the most useful ML packages I have found so far! I noticed that albumentations.MultiplicativeNoise fails under these conditions:
Image is unsqueezed grayscale with shape (H,W,1)
elementwise parameter has been set to True
Below is the minimal reproducing example:
h,w=28,28img=np.zeros((h,w))
tfm_img=albumentations.MultiplicativeNoise(elementwise=True, p=1)(image=img)
print(tfm_img['image'].shape) #prints (28,28) as it shouldimg=np.zeros((h,w,1))
tfm_img=albumentations.MultiplicativeNoise(elementwise=True, p=1)(image=img)
print(tfm_img['image'].shape) #prints (28,28,28) which is a bugimg=np.zeros((h,w,3))
tfm_img=albumentations.MultiplicativeNoise(elementwise=True, p=1)(image=img)
print(tfm_img['image'].shape) #prints (28,28,3) as it should
Also, if h and w are unequal, the script will crash with ValueError:
Hi,
first of all thanks for one of the most useful ML packages I have found so far! I noticed that
albumentations.MultiplicativeNoise
fails under these conditions:elementwise
parameter has been set to TrueBelow is the minimal reproducing example:
Also, if
h
andw
are unequal, the script will crash withValueError
:The text was updated successfully, but these errors were encountered: