-
Notifications
You must be signed in to change notification settings - Fork 368
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
always get ssim loss = tensor(1., device='cuda:0') #20
Comments
I have the same error. The results are always 1 |
Hi, I had the same problem, but managed to fix it by forcing data type as float. The problem occurred when the input was Byte. So in my case the fix was simply: |
perfectly solved my problem. THANKS a lot ! |
Thanks! |
I use SSIM as a loss, but it seems always = 1. I try to print ssim_map. It's all one. I make sure my two img is not the same. Their L1 distance isn't zero. I don't know where the error is. Could you please help me?
The text was updated successfully, but these errors were encountered: