Skip to content

AldrichCabrera/gradCam-smallvgg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disclaimer

I have been modified this source code for the SmallVggNet architecture presented in https://www.pyimagesearch.com/2018/04/16/keras-and-convolutional-neural-networks-cnns/

Then, I used the model with GradCam implementation for the Pokemon dataset to visualise the results. Hence, I have been changed some lines and successfully executing the script. The results obtained are presented in this repository:

Examples

'Charmander'

GradCAM-SmallVGG 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 and SmallVggNet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages