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
It seems that whether the class SSIM/MS_SSIM or the function ssim/msssim are all unsupported for the input with 1 channel. When I fed the ssim function with input array of size (1,1,1984,1984), I encountered the following error:
dim' is an invalid keyword argument for squeeze()
What's more, only 4D numpy array is supported, but not for 2D image, which requires expanding dimension first before being processed. This is also not very convenient. Please consider adding some parameters/functions for more versatile usage. Thanks for your efforts!
The text was updated successfully, but these errors were encountered:
@VainF Yeah it works, thank you! So the input must be a torch.Tensor but without limit on its channel number.
Ford666
changed the title
Unsupported for grayscale image with 1 channel 1or 2D input?
Unsupported for grayscale image with 1 channel or 2D input?
Nov 5, 2020
It seems that whether the class SSIM/MS_SSIM or the function ssim/msssim are all unsupported for the input with 1 channel. When I fed the ssim function with input array of size (1,1,1984,1984), I encountered the following error:
dim' is an invalid keyword argument for squeeze()
What's more, only 4D numpy array is supported, but not for 2D image, which requires expanding dimension first before being processed. This is also not very convenient. Please consider adding some parameters/functions for more versatile usage. Thanks for your efforts!
The text was updated successfully, but these errors were encountered: