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

confused aboud Correlation Calculation #93

Open
LiuXiang199x opened this issue Oct 24, 2023 · 1 comment
Open

confused aboud Correlation Calculation #93

LiuXiang199x opened this issue Oct 24, 2023 · 1 comment

Comments

@LiuXiang199x
Copy link

when calc correlation Pyramid, i dont understand why need to divided 2i; coords means flow prediction, when calc correlation in different resolution, why need to divide "2i"? i doesnt change shap, just change value of flow index.
x0 = dx + coords.reshape(batch*h1*w1, 1, 1, 1) / 2**i

@kartikmadhira1
Copy link

From what I understand, coords is not flow prediction but a grid map (torch.meshgrid output) containing the pixel coordinates. Flow prediction on the other is (coords1-coords0). This is also the correlation lookup that the authors talk about in the paper. So if we downsample the original correlation layer by 2, the corresponding pixel coordinates will also have to scale down by a factor of 2.

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