jacobgil/pytorch-grad-cam
Advanced AI Explainability for computer vision. Support for CNNs, Vision Transformers, Classification, Object detection, Segmentation, Image similarity and more.
Implements 16+ attribution methods ranging from gradient-based approaches (GradCAM, GradCAM++) to perturbation-based techniques (AblationCAM, ScoreCAM) with batched inference for high performance. Built on PyTorch, it supports explainability across diverse architectures including CNNs, Vision Transformers, and multimodal models like CLIP, plus includes built-in metrics and smoothing algorithms to validate and refine explanation quality. Also works with medical imaging, embedding similarity tasks, and provides deep feature factorization for interpretable representation analysis.
12,682 stars and 58,294 monthly downloads. Used by 3 other packages. No commits in the last 6 months. Available on PyPI.
Stars
12,682
Forks
1,694
Language
Python
License
MIT
Category
Last pushed
Apr 07, 2025
Monthly downloads
58,294
Commits (30d)
0
Dependencies
9
Reverse dependents
3
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/jacobgil/pytorch-grad-cam"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Related frameworks
frgfm/torch-cam
Class activation maps for your PyTorch models (CAM, Grad-CAM, Grad-CAM++, Smooth Grad-CAM++,...
jacobgil/keras-grad-cam
An implementation of Grad-CAM with keras
ramprs/grad-cam
[ICCV 2017] Torch code for Grad-CAM
matlab-deep-learning/Explore-Deep-Network-Explainability-Using-an-App
This repository provides an app for exploring the predictions of an image classification network...
innat/HybridModel-GradCAM
A Keras implementation of hybrid efficientnet swin transformer model.