Slide 17
Slide 17 text
GradCAM
CEO
Generalization of CAM (Class Activation Maps) to arbitrary architectures.
CAM works only for networks with last layer as an Global Average Pooling
layer
Alpha = Weights[:, class_index] # (512,)
FeatureMaps = getLastConvLayer() # (7,7,512)
CAM = Alpha * FeatureMaps # (7,7)
Upsample to original image size and overlay
In Grad CAM, the equivalent to global average pooling is performed on the
gradients of the output with respect to the feature maps Aij