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

Questions about relative coordinate #60

Open
duwl-SITP opened this issue Dec 29, 2024 · 0 comments
Open

Questions about relative coordinate #60

duwl-SITP opened this issue Dec 29, 2024 · 0 comments

Comments

@duwl-SITP
Copy link

Hi Yinbo,
Thank you for your work. When I use local_ensemble to calculate rel_coord, the rel_coord values sometimes exceed the range of [-1, 1]. I'm not sure if this is correct. Within the local region, half of the grid should be 1/H or 1/W, but if the sampled point deviates from the center, it seems that exceeding the range of [-1, 1] may occur.

liif/models/liif.py

Lines 81 to 83 in 4c833f8

rel_coord = coord - q_coord
rel_coord[:, :, 0] *= feat.shape[-2]
rel_coord[:, :, 1] *= feat.shape[-1]

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