File size: 355 Bytes
491ca4f
 
 
 
7d7e5b0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# CNN - Transformer Explainability

A simple tool with Gradio to compare Class Activation Map (CAM) from a ResNet50 with Attention Rollout from ViT.


## Installation

Install requirements with:

```bash
pip install -r requirements.txt
```

## Run:

```python
python app.py
```

## CAM

![](results/CAM.png)

## Attention Rollout

![](results/ROLLOUT.png)