VITA-Group/DeblurGANv2

I have this problems!win_size exceeds image extent. Either ensure that your images are at least 7x7;

xlnn opened this issue · 3 comments

xlnn commented

raise ValueError(
ValueError: win_size exceeds image extent. Either ensure that your images are at least 7x7; or pass win_size explicitly in the function call, with an odd value less than or equal to the smaller side of your images. If your images are multichannel (with color channels), set channel_axis to the axis number corresponding to the channels.

我也遇到了,请问解决了吗

I guess it might related to the version skimage.

if you are using 0.22.0 (latest as of now), try change the file ./models/models.py at around line 28:
from
ssim = SSIM(fake, real, multichannel=True)
to
ssim = SSIM(fake, real, channel_axis = 2)

WH0525 commented