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.
WH0525 commented
我也遇到了,请问解决了吗
davidvct commented
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
I am so sorry,I have forgotten how I solved.You can find the answer in CSDN. If I remember correctly, I used the rented server at that time, and then changed the configuration to run.
发自我的iPhone
…------------------ Original ------------------
From: davidvct ***@***.***>
Date: Wed,Jan 24,2024 11:37 AM
To: VITA-Group/DeblurGANv2 ***@***.***>
Cc: WH0525 ***@***.***>, Comment ***@***.***>
Subject: Re: [VITA-Group/DeblurGANv2] I have this problems!win_size exceedsimage extent. Either ensure that your images are at least 7x7; (Issue #152)