Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def create_attn_extractor(model, block_id=0):
|
|
29 |
|
30 |
|
31 |
def get_cls_attention_map(
|
32 |
-
image, attn_score_dict
|
33 |
):
|
34 |
"""Prepares attention maps so that they can be visualized."""
|
35 |
w_featmap = image.shape[3] // patch_size
|
|
|
29 |
|
30 |
|
31 |
def get_cls_attention_map(
|
32 |
+
image, attn_score_dict, block_key="blocks_token_only.0.attn.softmax"
|
33 |
):
|
34 |
"""Prepares attention maps so that they can be visualized."""
|
35 |
w_featmap = image.shape[3] // patch_size
|