jacobgil/pytorch-grad-cam

Advanced AI Explainability for computer vision. Support for CNNs, Vision Transformers, Classification, Object detection, Segmentation, Image similarity and more.

72
/ 100
Verified

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.

Stale 6m
Maintenance 2 / 25
Adoption 23 / 25
Maturity 25 / 25
Community 22 / 25

How are scores calculated?

Stars

12,682

Forks

1,694

Language

Python

License

MIT

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.