mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #237] weird attention map in Resnet CLIP #205
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openai/CLIP#205
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jihwanp on GitHub (Apr 25, 2022).
Original GitHub issue: https://github.com/openai/CLIP/issues/237
Hi I encoutered some weird attention map when using CLIP image encoder with Resnet (50x4 actually)

Above attention map is what I extracted from Resnet attention pooling layer, and it seems that all the tokens are attending to last token which is just local token of last index.
I don't know why this phenomenon happens, and I wonder if anyone has experienced the same phenomenon.
@lxkim814 commented on GitHub (Dec 25, 2024):
Hi @jihwanp , I faced the same issue and wanna know whether you figured out how to fix it.