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
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.
The text was updated successfully, but these errors were encountered:
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)
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)
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.
The text was updated successfully, but these errors were encountered: