Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xlnn opened this issue Mar 30, 2023 · 3 comments

Comments

@xlnn
Copy link

xlnn commented Mar 30, 2023

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
Copy link

WH0525 commented May 4, 2023

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

@davidvct
Copy link

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
Copy link

WH0525 commented Jan 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants