Skip to content

An implementation of Grad-CAM with keras(v2.1.3 tested)

License

Notifications You must be signed in to change notification settings

vense/keras-grad-cam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Grad-CAM implementation for Keras version 2.1.3

The original code could only keras version 2.0.9 under.

So, I modified little line. Usage is same like original version.

$ python grad-cam.py <path_to_image>


below script is from original github(https://github.com/jacobgil/keras-grad-cam)

Grad-CAM implementation in Keras

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

See the paper: https://arxiv.org/pdf/1610.02391v1.pdf

The paper authors torch implementation: https://github.com/ramprs/grad-cam

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 grad-cam.py <path_to_image>

Examples

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)

About

An implementation of Grad-CAM with keras(v2.1.3 tested)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%