#469 · Primary category: Computer Vision
Transformer-MM-Explainability
[ICCV 2021- Oral] Official PyTorch implementation for Generic Attention-model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers, a novel method to visualize any Transformer-based network. Including examples for DETR, VQA.
Project last updated:08/24/23
GitHub Stars
913
Forks
116
Contributors
4
License
MIT
Why we included this project
Anyone debugging a Transformer that has to look at images, whether for object detection, visual question answering, or CLIP-style zero-shot tasks, can get real value from seeing where the model actually attends. The repo is the official ICCV 2021 implementation of the Generic Attention-model Explainability method, and it turns attention heads and layers into heatmaps over the input image. It ships runnable notebooks for DETR, LXMERT/VQA, CLIP, and ViT, so you can plug in your own image, and sometimes a free-form question, without building a demo from scratch. Since the method does not depend on a particular architecture, the code is also a decent reference for adding attention-based explanations to a model that none of the included examples cover. Keep expectations in line: this is a research codebase of scripts and notebooks, not a maintained library, so treat it as a starting point rather than production software.
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
opencv
Open Source Computer Vision Library
RuView
π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.
PaddleOCR
Turn any PDF or image document into structured data for your AI. A powerful, lightweight OCR toolkit that bridges the gap between images/PDFs and LLMs. Supports 100+ languages.
MinerU
Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
tesseract
Tesseract Open Source OCR Engine (main repository)