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

Where does 31 come from in optical_flow_warp? #19

Open
NielsFuglsang opened this issue Nov 3, 2021 · 1 comment
Open

Where does 31 come from in optical_flow_warp? #19

NielsFuglsang opened this issue Nov 3, 2021 · 1 comment

Comments

@NielsFuglsang
Copy link

Hello,

Nice work and code!

I have a question regarding the optical_flow_warp method. I understand that we want grid to have values in the range of [-1,1], but the multiplication with 31 seems arbitrary to me.

    flow_0 = torch.unsqueeze(image_optical_flow[:, 0, :, :] * 31 / (w - 1), dim=1)
    flow_1 = torch.unsqueeze(image_optical_flow[:, 1, :, :] * 31 / (h - 1), dim=1)

Can somebody further explain where this comes from?

@ToanLyHoa
Copy link

I have the same question

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