Skip to main content

A Simple pytorch implementation of GradCAM, and GradCAM++

Project description

A Simple pytorch implementation of GradCAM[1], and GradCAM++[2]


pip install pytorch-gradcam

Supported torchvision models

  • alexnet
  • vgg
  • resnet
  • densenet
  • squeezenet


please refer to example.ipynb for general usage and refer to documentations of each layer-finding functions in if you want to know how to set target_layer_name properly.


[1] Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization, Selvaraju et al, ICCV, 2017
[2] Grad-CAM++: Generalized Gradient-based Visual Explanations for Deep Convolutional Networks, Chattopadhyay et al, WACV, 2018

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytorch-gradcam, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pytorch_gradcam-0.1.0-py3-none-any.whl (5.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pytorch-gradcam-0.1.0.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page