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

SSIM calculate error #1

Open
stefenmax opened this issue Apr 10, 2024 · 4 comments
Open

SSIM calculate error #1

stefenmax opened this issue Apr 10, 2024 · 4 comments

Comments

@stefenmax
Copy link

Hi, thanks for your work. When I want to reproduce the result using the DIV2K dataset. When calculate the ssim it raises the error
File "/mnt/new_ssd/stefen/code/AdaBM/src/utility.py", line 265, in ssim_matlab
(_, _, height, width) = img1.size()
ValueError: too many values to unpack (expected 4)
When I check the dimension of imag1, it has 5. Should I remove the first dimension? Thanks
(Pdb) img1.size()
torch.Size([1, 1, 3, 1336, 2020])

@stefenmax
Copy link
Author

Plus, when I comment the ssim and continue to train 100 epochs use the following line
sh run.sh edsr 0 6 8
The average PSNR remain around 11.679, and the SR image looks not good.
0808_x4_10 21dB_5 31bit

@Cheeun
Copy link
Owner

Cheeun commented Apr 10, 2024

Hi, thanks for your interest in our work!
Could you check which type of data you are using for training?
When I directly ran sh run.sh edsr 0 6 8, the data dimension was 4 instead of 5.

@stefenmax
Copy link
Author

I used the DIV2K link you provided. It's PNG file

@Cheeun
Copy link
Owner

Cheeun commented Apr 12, 2024

@stefenmax, sorry but I failed to reproduce your error.
Could you post the command that you used?

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

2 participants