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

Implementation issues of the Efficient Self-Attention module #148

Open
K1t3 opened this issue May 3, 2024 · 0 comments
Open

Implementation issues of the Efficient Self-Attention module #148

K1t3 opened this issue May 3, 2024 · 0 comments

Comments

@K1t3
Copy link

K1t3 commented May 3, 2024

Firstly, thank you to all the authors for their impressive work. SegFormer has indeed demonstrated extraordinary performance.

When studying the code carefully, I noticed that you mentioned in the article that the Efficient Self Attention module reshaped the $K$ matrix and utilized the linear projection to reduce the number of parameters by $R$ times, and set different reduction rates at each stage ($[64, 16, 4, 1]$ from stage-1 to stage-4). I guess this part of the code is located in the Attention class, but after reading the code multiple times, I reckon that there is only code for the ordinary multi-head self-attention mechanism in the code block, and no code implementation that matches the concept of the Efficient Self Attention module in the article has been found.

Did I misunderstand or was there a missing part in the code? I hope to receive your answer, which is very important to me. THX!

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

1 participant