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 how to visualize optical flow #10

Open
fupiao1998 opened this issue Jan 2, 2021 · 2 comments
Open

Questions about how to visualize optical flow #10

fupiao1998 opened this issue Jan 2, 2021 · 2 comments

Comments

@fupiao1998
Copy link

Hello, thank you for such valuable work. I read and debugged your code, and I have a question about how to visualize the optical flow calculated by the motionsqueeze module. I observed that the data range of the output optical flow is [-1, 1], which does not match the value range of optical flow in the traditional sense. After I converted tensor to numpy, I used the conversion function here https://github.com/princeton-vl/RAFT/blob/master/core/utils/flow_viz.py. But the effect of direct visualization does not seem meaningful. So I want to ask you how to correctly convert the optical flow into a three-channel color picture.

@zzwei1
Copy link

zzwei1 commented Nov 1, 2021

Hello, thank you for such valuable work. I read and debugged your code, and I have a question about how to visualize the optical flow calculated by the motionsqueeze module. I observed that the data range of the output optical flow is [-1, 1], which does not match the value range of optical flow in the traditional sense. After I converted tensor to numpy, I used the conversion function here https://github.com/princeton-vl/RAFT/blob/master/core/utils/flow_viz.py. But the effect of direct visualization does not seem meaningful. So I want to ask you how to correctly convert the optical flow into a three-channel color picture.

Hi, have you figure out how to visualize the learned flow ? I have the same question.
Is it related to the normalization of the learned flow, as in the function "match_to_flow_soft"?
image
In the code, the learned flow_x and flow_y are normalized with (self.patch_dilation * displacement).

@rayush7
Copy link

rayush7 commented Feb 24, 2022

Hi, I am also trying to visualize the learnt optical flow. @fupiao1998 @zzwei1 Any success in doing so?

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

3 participants