I have one query regarding class activation maps. If i have a trained model which was initialized using convlearner.pretrained. Now i can load the saved model replace the last layers as per cam and then train the last layers. Is this okay ? or the idea is to retrain the whole network with modified last layers? looking forward to your response.
@TheShadow29, thanks a lot for sharing the code. I was trying to visualize CAM for a WideResNet model but was facing some issues in the same. Unlike Resnet, the dimensions of the fully connected layer and the last convolutional layer don’t match in the Wideresnet_50 model and hence, taking a matrix product is impossible.
Any idea on how do we go about visualizing CAM for a Wideresnet_50 model? Is it even possible?