Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobgil/keras-grad-cam
An implementation of Grad-CAM with keras
https://github.com/jacobgil/keras-grad-cam
deep-learning grad-cam keras visualization
Last synced: 5 days ago
JSON representation
An implementation of Grad-CAM with keras
- Host: GitHub
- URL: https://github.com/jacobgil/keras-grad-cam
- Owner: jacobgil
- License: mit
- Created: 2016-10-23T22:17:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-08T13:54:56.000Z (over 5 years ago)
- Last Synced: 2024-02-15T10:32:42.192Z (10 months ago)
- Topics: deep-learning, grad-cam, keras, visualization
- Language: Python
- Size: 186 KB
- Stars: 652
- Watchers: 17
- Forks: 240
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-explainable-AI - https://github.com/jacobgil/keras-grad-cam - grad-cam?style=social) (Python Libraries(sort in alphabeta order) / Evaluation methods)
README
## 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 `
##### Examples
![enter image description here](https://github.com/jacobgil/keras-grad-cam/blob/master/examples/boat.jpg?raw=true) ![enter image description here](https://github.com/jacobgil/keras-grad-cam/blob/master/examples/persian_cat.jpg?raw=true)
Example image from the [original implementation](https://github.com/ramprs/grad-cam):
'boxer' (243 or 242 in keras)
![](/examples/cat_dog.png)
![](/examples/cat_dog_242_gradcam.jpg)
![](/examples/cat_dog_242_guided_gradcam.jpg)'tiger cat' (283 or 282 in keras)
![](/examples/cat_dog.png)
![](/examples/cat_dog_282_gradcam.jpg)
![](/examples/cat_dog_282_guided_gradcam.jpg)