You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What are the main parameters that influence the final output range if I do not consider the final scaling and rescaling thus the plain xhere, without x = (x - self.mean) * self.img_range and x = x / self.img_range + self.mean.
Because I'm trying to use it with an image bounded between 0 and 1, but it gives output values from -30 to +200, and I don't know why. I'm doing this because I want to apply this algorithm to non-real images, like temperature or gas emissions maps.
If i force the net to output values bounded between 0 and 1, i.e. x[x<0]=0 and x[x>1]=1 I obtain images filled with ones, thus the training stops after some epochs since the loss is nearly constant and does not improve.
Thanks a lot!
The text was updated successfully, but these errors were encountered:
antonelse
changed the title
Ho to limit the range of the super-resolved image
How to limit the range of the super-resolved image
Mar 6, 2024
Thanks @chxy95 !
The problem is that, after some batches, the network tries to shrink the values to match the input range of the image, but after some epochs, it explodes, returning values far above the original range.
To avoid this, I wanted to know how I could act to reduce the problem in the image synthesis part and prevent this unusual behavior.
In short: the net's output is not bounded between 0 and 1. Is it normal ? If so, how to handle this?
I'll experiment with some regularization and gradient clipping techniques.
If you have any suggestions, I'm here :)
Many thanks.
Hi, just a curiosity.
What are the main parameters that influence the final output range if I do not consider the final scaling and rescaling thus the plain
x
here, withoutx = (x - self.mean) * self.img_range
andx = x / self.img_range + self.mean
.Because I'm trying to use it with an image bounded between 0 and 1, but it gives output values from -30 to +200, and I don't know why. I'm doing this because I want to apply this algorithm to non-real images, like temperature or gas emissions maps.
If i force the net to output values bounded between 0 and 1, i.e.
x[x<0]=0
andx[x>1]=1
I obtain images filled with ones, thus the training stops after some epochs since the loss is nearly constant and does not improve.Thanks a lot!
The text was updated successfully, but these errors were encountered: