ECCV2022-RIFE icon indicating copy to clipboard operation
ECCV2022-RIFE copied to clipboard

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

Open MichalTurek opened this issue 2 years ago • 5 comments

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?

MichalTurek avatar Nov 25 '23 12:11 MichalTurek

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

hzwer avatar Nov 27 '23 08:11 hzwer

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

MichalTurek avatar Nov 27 '23 16:11 MichalTurek

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

hzwer avatar Nov 28 '23 02:11 hzwer

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

MichalTurek avatar Dec 05 '23 21:12 MichalTurek

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

hzwer avatar Dec 06 '23 02:12 hzwer