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

Change align_corners to True in position encoding interpolation #468

Open
infinity1096 opened this issue Sep 24, 2024 · 0 comments
Open

Comments

@infinity1096
Copy link

In current implementation, we have align_corners=False, which according to this post this will led position encoding at the edge be value padded(have the same value as the endpoint of source values, the original PE) and behave differently compared to patches at the center.

We therefore suggest changing to align_corners=True to avoid the difference between PE at the edge v.s. others.

image
image credit: Lucas Beyer

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