Skip to content

Bh4r4t/Grad-CAM-Implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Grad-CAM Implmentation

PyTorch Implmentation of Grad-CAM.
Grad-CAM is a technique to generate visual explaination of the result of a Convolutional Neural Net.

Files

  • gradcam.py contains the codebase for the Grad-CAM method. The GradCam class expects a model and its layer as input.
  • test.py is a sample script to generate gradcam output.

Sample Output

Image

Above Implmentation test uses Resnet101 model. But any model can be used to generate output.


See the Paper: Ramprasaath R. Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, Dhruv Batra; Grad-CAM: Visual Explanations From Deep Networks via Gradient-Based Localization.

Authors' implementation: ramprs/grad-cam.

Releases

No releases published

Packages

No packages published

Languages