#41 · Primary category: Computer Vision

pytorch-grad-cam

class-activation-maps computer-vision deep-learning explainable-ai explainable-ml grad-cam image-classification interpretability interpretable-ai interpretable-deep-learning machine-learning object-detection pytorch score-cam vision-transformers visualizations xai

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

Project last updated:08/13/26

GitHub Stars

13.0K

Forks

1.7K

Contributors

54

License

MIT

Why we included this project

Training or shipping a PyTorch vision model almost always means answering one question at some point: what is the network actually looking at? This library packages a large collection of pixel-attribution methods, from the original GradCAM through newer options like ScoreCAM, LayerCAM, and HiResCAM, behind a consistent API that lets you swap techniques by changing a few lines. It is not limited to image classifiers; the same code handles object detection, semantic segmentation, embedding similarity, and even CLIP-style text prompts, so it is useful for debugging real workflows, not just research notebooks. There is also built-in smoothing, full batched inference, and faithfulness metrics for checking whether the explanations you generate can be trusted. If you do applied computer vision work, this is one of the first libraries to reach for when a model misbehaves.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category