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 Loss Layer #2

Closed
DanielBonanno opened this issue Jan 31, 2018 · 1 comment
Closed

SSIM Loss Layer #2

DanielBonanno opened this issue Jan 31, 2018 · 1 comment

Comments

@DanielBonanno
Copy link

DanielBonanno commented Jan 31, 2018

Dear Mehta,
Is the SSIM implementation correct for the GPU or is it still without the GPU implementation?
Plus, does it work if the weight is left as 1 or does it need to be scaled so that the network can be trained? Currently im trying it on 64x64 patches and im getting an SSIM of approximately 64, which should not be the case.

Also, I'm very new to caffe, so please excuse this simple question: Can this layer be used in conjunction with your L1 Loss layer?

Thank you.

@mehtadushy
Copy link
Owner

Yes, can be used in conjunction with the L1 loss layer.

You'll have to work out the loss weight yourself though, based on the problem you are using it for, your network, learning rate, solver, other losses .......

It is a DSSIM layer, and is not normalized by the number of pixels, so scales with it. The forward pass will tell you what is exactly happening in the code

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