jacobgil/vit-explain
Explainability for Vision Transformers observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2073
- days_rel: n/a
- days_push: 1635
- n_releases_24m: 0
Adoption not part of the score
1098 stars · 108 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PyTorch library implementing explainability methods for Vision Transformers, including Attention Rollout and Gradient Attention Rollout. It provides both a Python API and a command-line script to visualize where a transformer model attends in an image.
Use cases
- visualize attention maps of vision transformers
- explain vision transformer classifications
- generate class-specific saliency masks for ViT models
- understand which image regions a DeiT model uses
- debug transformer attention head behavior
- create attention heatmap overlays for research papers
When to choose
- you need attention-based explainability for Vision Transformers in PyTorch
- you want class-specific attention visualizations with gradient rollout
- you want a quick CLI to generate attention heatmaps from images
When to avoid
- you need explainability for CNNs rather than transformers
- you need production-grade model interpretation tooling with broad model support
- you need actively maintained features like attention flow, which is unfinished
Facets
library · maturity maintenance
machine-learning deep-learning image-processing computer-vision deep-learning computer-vision machine-learning artificial-intelligence python vision-transformer explainable-ai attention-rollout pytorch interpretability
1 source
- readme: https://github.com/jacobgil/vit-explain · fetched 2026-08-28 · f45264f74086
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jacobgil/vit-explain | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="jacobgil/vit-explain")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem