Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The choice of head_idx #1

Closed
kwea123 opened this issue Apr 18, 2022 · 1 comment
Closed

The choice of head_idx #1

kwea123 opened this issue Apr 18, 2022 · 1 comment

Comments

@kwea123
Copy link

kwea123 commented Apr 18, 2022

head_idxs = [0, 2, 4, 5]

Is there any reason why you choose these heads?

@ShirAmir
Copy link
Owner

We found that heads 1 and 3 attend to background information in ViT-S, so we decided to disregard them for saliency map creation. The method still works comparably well when using all heads, at the cost of adjusting some parameters.

@kwea123 kwea123 closed this as completed Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants