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

Attention maps DINO Patchdrop #6

Closed
rraju1 opened this issue Feb 25, 2022 · 1 comment
Closed

Attention maps DINO Patchdrop #6

rraju1 opened this issue Feb 25, 2022 · 1 comment

Comments

@rraju1
Copy link

rraju1 commented Feb 25, 2022

Hi, thanks for the amazing paper.

My question is about how which patches are dropped from the image with the DINO model. It looks like in the code in evaluate.py on line 132 head_number = 1. I want to understand the reason why this number was chosen (the other params used to index the attention maps seem to make sense). Wouldn't averaging the attention maps across heads give you better segmentation?

Thanks,

Ravi

@kahnchana
Copy link
Collaborator

Thanks for your interest and positive comments. Sorry for the delayed response.

We follow the method used in the DINO code and the selected head seems to result in best segmentations for selected data (measured qualitatively for randomly selected visualizations). It is similar for a different task: quantitative evaluation with PASCAL mIoU.

Average maps reduce performance. I think averaging the attention maps reduces foreground segmentation quality since some heads focus on certain parts of the background (e.g. grass in some images).

@rraju1 rraju1 closed this as completed Jun 1, 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