项目作者: jacobgil

项目描述 :
An implementation of Grad-CAM with keras
高级语言: Python
项目地址: git://github.com/jacobgil/keras-grad-cam.git
创建时间: 2016-10-23T22:17:43Z
项目社区:https://github.com/jacobgil/keras-grad-cam

开源协议:MIT License

下载


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)