Mean of sum of gradients in Grad-CAM? #434
Replies: 1 comment
-
Equation (1) in the paper https://arxiv.org/pdf/1610.02391.pdf suggests taking a mean instead of sum. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I got some confusions in Grad-CAM weight calculation, it would be great to clarify that:
In the code
pytorch-grad-cam/pytorch_grad_cam/grad_cam.py
Line 16 in 58a565a
indicates that it is the mean of gradients, but equation (11) in the paper https://arxiv.org/pdf/1610.02391.pdf is the sum of the partial gradients. I am confused. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions