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
PIL (no longer) supports image multiplication with * operator, causing error:
File ".../lib/python3.6/site-packages/ssim/ssimlib.py", line 126, in ssim_value
img_mat_12 = self.img.img_gray * target.img_gray
TypeError: unsupported operand type(s) for *: 'Image' and 'Image'
One needs to add ndarray conversion, like cw_ssim_value() counterpart.
The text was updated successfully, but these errors were encountered:
I think the difference to your test is that I do not pass gaussian_kernel_1d to SSIM constructor, like you do on line 238, after which the greyscale conversion has a different type.
PIL (no longer) supports image multiplication with * operator, causing error:
File ".../lib/python3.6/site-packages/ssim/ssimlib.py", line 126, in ssim_value
img_mat_12 = self.img.img_gray * target.img_gray
TypeError: unsupported operand type(s) for *: 'Image' and 'Image'
One needs to add ndarray conversion, like cw_ssim_value() counterpart.
The text was updated successfully, but these errors were encountered: