This is tensorflow version of demo for Grad-CAM. I used vgg16 for demo because this model is very popular CNN model. However grad-cam can be used with any CNN model. Just modify convolution layer in my demo code.
See python notebook to see demo of this repository.
To use the VGG networks in this demo, the npy files for VGG16 NPY has to be downloaded.
Grad-CAM: Why did you say that? Visual Explanations from Deep Networks via Gradient-based Localization
Ramprasaath R. Selvaraju, Abhishek Das, Ramakrishna Vedantam, Michael Cogswell, Devi Parikh, Dhruv Batra
https://arxiv.org/abs/1610.02391
Thanks for the awesome machine learning commuity for providing many building blocks.
https://github.com/ramprs/grad-cam
https://github.com/machrisaa/tensorflow-vgg
https://github.com/jacobgil/keras-grad-cam
https://github.com/Ankush96/grad-cam.tensorflow
https://gist.github.com/falcondai/561d5eec7fed9ebf48751d124a77b087