-
Notifications
You must be signed in to change notification settings - Fork 500
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
retPerLayer=True not working as expected #70
Comments
|
What I was saying is that when the layer-wise results are activated the first position |
Could you look at the 2nd output, which has a list containing every layer? |
That's exactly what I'm referring to. The second output is a list, yes. But the first element of that list is exactly the same as the accumulated value! |
Yikes, you're totally right. I fixed it and uploaded a new version to pypi. Thanks! |
While trying different parameters for the LPIPS class, I encountered that when using
retPerLayer=True
in the forward method the returned values are not as I would expect.I think the problem is due to the following lines:
After debugging I notice the following:
Before doing the
for
on line 108so
val
is 0.1195 at first, but after iterating through the forres[0]
keeps updating at the same value ofval
so at the end I get the following:Could maybe be solved by assigning
val
to 0 at line 107?I'm trying to use only the output of some layers instead of the accumulation of all the layers.
Thanks in advance!!!
The text was updated successfully, but these errors were encountered: