Skip to content

Commit f5fe9f9

Browse files
author
Ankit Gupta
committed
fixed attention map inversion
1 parent 21bc007 commit f5fe9f9

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

inference.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ def save_attention_map(attn, input_shape, output_path):
9191
scale_each=True,
9292
)
9393
attn = (attn.permute(1, 2, 0).cpu().numpy() * 255).astype(np.uint8)
94-
attn = 255 - attn
9594
imsave(output_path + "_attention_map.png", attn)
9695

9796

0 commit comments

Comments
 (0)