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

Output is out of range #12

Closed
jianzhuwang opened this issue Feb 13, 2020 · 2 comments
Closed

Output is out of range #12

jianzhuwang opened this issue Feb 13, 2020 · 2 comments

Comments

@jianzhuwang
Copy link

Sorry to bother you. But I used ssim as a loss function, and found some strange outputs. The gray values of the inputs are normalized to [0,1], but the output can be out of this range, like (-100,...), which is meaningless. In other words, the network is optimized toward a wrong direction. I do not know what is the reason, could you please give me some suggestions? btw, the network can work with other loss functions.

@jorge-pessoa
Copy link
Owner

jorge-pessoa commented Jun 23, 2020

Hello,

I apologize for the delay in answering. Are you optimizing your network using the SSIM or MS-SSIM metric? If you are still facing this issue I would suggest trying to optimize the network with the most recent changes pushed to this repository which may help (using normalize="relu").

In the case your problem persists, I would ask you to submit a minimally reproducible example of your problem (if you are able to) or at least some more details on your experiment. Note that the MS-SSIM metric is not particularly stable for training and may cause problems in certain architectures compared to simpler metrics.

Thank you,

@jorge-pessoa
Copy link
Owner

Due to the staleness, I will close this issue. Feel free to reopen a new one if you are still facing the same problem.

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