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
LPIPS expects images to be within the -1 to 1 range. Within the forward function, there is a normalize flag that is by default set to False. It normalizes the images to the -1 to 1 range:
ifnormalize: # turn on this flag if input is [0,1] so it can be adjusted to [-1, +1]in0=2*in0-1in1=2*in1-1
However, in your case, images (rgb, rgb_sr, target) are within the 0 to 1 range. And you did not set normalize flat to True. Is this intentional, or was it perhaps overlooked?
The text was updated successfully, but these errors were encountered:
When using the LPIPS loss, as exemplified in:
https://github.com/amundra15/livehand/blob/release/models/loss.py#L45
https://github.com/amundra15/livehand/blob/release/models/loss.py#L57
LPIPS expects images to be within the -1 to 1 range. Within the
forward
function, there is anormalize
flag that is by default set toFalse
. It normalizes the images to the -1 to 1 range:However, in your case, images (rgb, rgb_sr, target) are within the 0 to 1 range. And you did not set
normalize
flat toTrue
. Is this intentional, or was it perhaps overlooked?The text was updated successfully, but these errors were encountered: