Spaces:
Sleeping
Sleeping
Update
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def rollout(attentions, discard_ratio, head_fusion, num_prefix_tokens=1):
|
|
100 |
mask = mask / np.max(mask)
|
101 |
return mask
|
102 |
|
103 |
-
@spaces.GPU
|
104 |
def visualize_attention(
|
105 |
image: Image.Image,
|
106 |
model_name: str,
|
|
|
100 |
mask = mask / np.max(mask)
|
101 |
return mask
|
102 |
|
103 |
+
@spaces.GPU
|
104 |
def visualize_attention(
|
105 |
image: Image.Image,
|
106 |
model_name: str,
|