Skip to content

Implementing Grad CAM using keras to get a clear view of what our model is focusing on

Notifications You must be signed in to change notification settings

AshishGusain17/Grad-CAM-implementation

Repository files navigation

Grad-CAM-implementation

Dependencies required

  • Python 3.0
  • TensorFlow 2.0
  • tf-explain
  • keras
Grad-CAM uses the gradient information flowing into any particular convolutional layer to produce a coarse 
localization map highlighting the important regions in the image to understand each neuron for a decision of interest.

gradCAM implementation

First one is the normal image and the second one has gradCAM implemented over its last convolutional layer.
The third one has highlighted regions displayed over the initial image.


Working with tf-explain

This library is not an official Google product, although it is built for Tensorflow 2.0 models.
tf-explain is completely built over the new TF2.0 API, and is primarily based on tf.keras when possible.
Implementing it over the classical dance images shows the results as:

About

Implementing Grad CAM using keras to get a clear view of what our model is focusing on

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published