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

Is it possible to ouput optical flow instead of midpoint flow using latest version? #344

Open
MichalTurek opened this issue Nov 25, 2023 · 5 comments

Comments

@MichalTurek
Copy link

Hi, I saw the issue #278 , however In my opinion rife_m model provided in older version lacks the quality which is provided in latest versions. My question is how to do it using lets say version 4.12?

@hzwer
Copy link
Owner

hzwer commented Nov 27, 2023

The methods are similar. In Flownet.py, the first value returned by model inference is the optical flow list. Just take flow_list[-1][:, :2].

image

@MichalTurek
Copy link
Author

okay, what about the timestamp parameter? shall I set it to 1.0 or 0.0?

@hzwer
Copy link
Owner

hzwer commented Nov 28, 2023

Set it to 1.0. Then flow[:, :2] will be F1->0 (Theoretically speaking)

@MichalTurek
Copy link
Author

and if i set timestamp to 0 then i will get f0->1
?

@hzwer
Copy link
Owner

hzwer commented Dec 6, 2023

flow[:, :2] is Ft->0, flow[:, 2:4] is Ft->1
Set timestep to 1.0. Then flow[:, :2] will be F1->0, flow[:, 2:4] will be F1->1
Set timestep to 0. Then flow[:, :2] will be F0->0, flow[:, 2:4] will be F0->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

2 participants