An implementation of Grad-CAM with keras
Switch branches/tags
Nothing to show
Clone or download
Latest commit 5a88cdc Mar 29, 2017
Failed to load latest commit information.
examples add an example from the original implementation… Mar 29, 2017
LICENSE Initial commit Oct 23, 2016 Update Mar 29, 2017 filenames Mar 29, 2017

Grad-CAM implementation in Keras

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

See the paper:

The paper authors torch implementation:

This code assumes Tensorflow dimension ordering, and uses the VGG16 network in keras.applications by default (the network weights will be downloaded on first use).

Usage: python <path_to_image>


enter image description here enter image description here

Example image from the original implementation:

'boxer' (243 or 242 in keras)

'tiger cat' (283 or 282 in keras)