Interpretability
Last updated
Last updated
Class activation mapping (CAM)
A weakly supervised localization method.
If the last three layers are "convolution + global average pooling+ full connection), then you can apply this method to visualize object location.
Just use fc's weight and calculate weighted sum of convolution feature maps (without global average pooling).
Class activation mapping
Let be the k feature maps of the last convolution layer and followed by GAP and FC layers, and is the size of a feature map, and is the weight which connected n-th filter to one of the scores called "s".
It changed the layers' order from "conv->GAP->FC" to "conv->FC->GAP". The following simple equation is called the "class activation mapping" of class "s".