Grad_CAM_plus_plus icon indicating copy to clipboard operation
Grad_CAM_plus_plus copied to clipboard

Question about Equation 17 in the paper

Open chuong98 opened this issue 5 years ago • 2 comments

Hi, it seems to me that you can simplify the equation Equ 17 by dividing both numerator and denominator by (dS/dA)^2, to get :

alpha = 1/(2 + sum(A_ab)*(dS/dA)) if dS/dA !=0.

else: alpha = 0

Is this correct? Thanks.

Also, is there any restriction to use the exponential function. For example, If my output layer uses softmax or sigmoid, can I still use Yc = exp(Sc)?

chuong98 avatar Aug 21 '18 08:08 chuong98

You can't divide by infinitesimals. That does not make sense

adityac94 avatar Oct 03 '18 14:10 adityac94

No, taking the limit when dS/dA converges to 0, alpha converges to 0. Otherwise, you can divide it.

chuong98 avatar Oct 23 '18 06:10 chuong98