pytorch-grad-cam and xai-image-classification

One is a popular and robust Python library for Grad-CAM across various deep learning architectures and tasks, while the other is a niche MATLAB example demonstrating Grad-CAM for image classification, making them **competitors** in the general sense of offering Grad-CAM capabilities, but with vastly different scopes, languages, and user bases.

pytorch-grad-cam
72
Verified
xai-image-classification
24
Experimental
Maintenance 2/25
Adoption 23/25
Maturity 25/25
Community 22/25
Maintenance 0/25
Adoption 3/25
Maturity 9/25
Community 12/25
Stars: 12,682
Forks: 1,694
Downloads: 58,294
Commits (30d): 0
Language: Python
License: MIT
Stars: 3
Forks: 1
Downloads:
Commits (30d): 0
Language:
License: MIT
Stale 6m
Stale 6m No Package No Dependents

About pytorch-grad-cam

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.

About xai-image-classification

ogemarques/xai-image-classification

Example of how to use MATLAB to produce post-hoc explanations (using Grad-CAM) for image classification tasks.

Scores updated daily from GitHub, PyPI, and npm data. How scores work