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
#541 When I try to learn how to get hessian matrix I find the implementation of Grad-CAM++ just used grads_power_2 = grads**2 and grads_power_3 = grads_power_2 * grads to get the second and third order derivatives. Is that correct? The formula in original paper is listed below.
The text was updated successfully, but these errors were encountered:
GradCAM++ approximates second and third-order derivatives using squared and cubed gradients, which holds only when logits are passed through an exponential function (i.e., output = exp(logits) ).
Computing the exact Hessian matrix is both time-consuming and space-consuming. However, obtaining the Hessian-vector product requires only a single backward pass, as demonstrated in ShapleyCAM, which is also merged to this repository.
#541 When I try to learn how to get hessian matrix I find the implementation of Grad-CAM++ just used
grads_power_2 = grads**2
andgrads_power_3 = grads_power_2 * grads
to get the second and third order derivatives. Is that correct? The formula in original paper is listed below.The text was updated successfully, but these errors were encountered: