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

Question about sampling_offest, sampling_locations normalize for F.grid_sample #227

Open
SnaKey0u0 opened this issue Apr 5, 2024 · 0 comments

Comments

@SnaKey0u0
Copy link

Thank you for the great work!

I have a question,
when query pass through the linear layer of sampling_offest, I found out that its value is between +-4 at the first epoch,
and then normalized by offset_normalizer, which stands for feature map size like 32, 16, etc.

After the above steps, the sampling_locations will not keep in the range [0,1], and then the sampling_grids = 2 * sampling_locations - 1 for F.grid_sample (I am using the pytorch version) will not follow the rule of range (-1, 1).

Could you help me figure out this problem?

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