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

Positional Encoding #3

Open
mrluin opened this issue May 13, 2022 · 1 comment
Open

Positional Encoding #3

mrluin opened this issue May 13, 2022 · 1 comment

Comments

@mrluin
Copy link

mrluin commented May 13, 2022

Hello,

Thanks for your great work, an efficient and neat transformer framework is essential for low-level vision I think.

According to your work, I tried discard the attention mask and positional encoding in SwinIR, the training and inference speed is largely improved, and the attention mask has slight effect on performance. However, the performance severely droped after removing RPE in original SwinIR.

Could you please give me some hints about how can we discard RPE (and attention mask) correctly? directly removing codes related to positional encoding or removing positional encoding should incorporate someother necessary elements?

Looking forward to your reply, thanks~

@bonlime
Copy link

bonlime commented May 26, 2022

It probably works for authors because they add Shift-Conv (which is almost a conv3x3), default SwinIR doesn't have any 3x3 convs so postitional embedding is required

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