by Ankush96

Implementation of Grad CAM in tensorflow

210 Stars 73 Forks Last release: Not found 7 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


Implementation of Grad CAM in tensorflow

Gradient class activation maps are a visualization technique for deep learning networks.

The original paper:

The original torch implementation:


Clone the repository

git clone
Download the VGG16 weights from


python --input laska.png --output laska_save.png --layer_name pool5


| Input | Output | | ------|-----:| | Original image | Original image + Visualization |


Model weights (vgg16weights.npz), Class names ( and example input (laska.png) were copied from this blog by Davi Frossard ( TensorFlow model of vgg ( was taken from the same blog but was modified a little. also provided key insights into understanding the algorithm.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.