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

AssertionError: Image size should be larger than 32 due to the 4 downsamplings in ms-ssim #5

Open
caiyu6666 opened this issue Jul 6, 2022 · 7 comments

Comments

@caiyu6666
Copy link

caiyu6666 commented Jul 6, 2022

In p32.ssim_main, there isreal_data = data_tmp.reshape(-1, 3, 32, 32). However, when computing the mssim the image size should be larger than 32. How to solve this problem?

@zhongjian1999
Copy link

Hello, have you solved this problem?

@caiyu6666
Copy link
Author

No, do you find the solution?

@zhongjian1999
Copy link

No, do you find the solution?

change 'assert smaller_side > (win_size - 1)' to 'assert smaller_side >= (win_size - 1)' in package pytorch_ssim line 200

@caiyu6666
Copy link
Author

Thank you very much!

@caiyu6666
Copy link
Author

caiyu6666 commented Mar 15, 2023

I didn't think about modifying the internal code of the ms-ssim package before.

@cjzhzh
Copy link

cjzhzh commented Sep 5, 2023

I change it but it not work

@cjzhzh
Copy link

cjzhzh commented Sep 5, 2023

Oh,it work,Thank you

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