cain-ncnn-vulkan icon indicating copy to clipboard operation
cain-ncnn-vulkan copied to clipboard

Can it handle large pans?

Open noobtoob4lyfe opened this issue 5 years ago • 8 comments

I'm really enjoying playing with this software. Thanks for making it available!

I'm noticing that it works really well on details and features that move over a small percentage of the screenspace from one frame to the next.

However, I'm also noticing that it seems to freak out when there are pan and tilt motions of the camera that exceed a certain amount of degrees per frame. See here for an example. https://drive.google.com/file/d/1BPvVEIK1u1ngv9607tWEOm-vGNmr-Xug/view?usp=sharing I find this strange because cheap traditional optical flow frame interpolation has no problem with this same shot.
Is this something that can modified in the code to fix? I've tried basically every window size and nothing seems to help. Could it possibly be trained handle these kind of camera moves better? Thanks in advance!

noobtoob4lyfe avatar Nov 05 '20 23:11 noobtoob4lyfe

Anyone have any ideas about what's happening here, or what I might be able to do to improve? Thanks!

noobtoob4lyfe avatar Nov 26 '20 19:11 noobtoob4lyfe

Have you tried -t 2048

routineLife1 avatar Nov 26 '20 19:11 routineLife1

Thanks for the reply. Yes, i did try a number of different values there including 2048 and it did not improve things.

noobtoob4lyfe avatar Nov 26 '20 20:11 noobtoob4lyfe

I think this should be a problem with the CAIN algorithm

routineLife1 avatar Nov 26 '20 20:11 routineLife1

It is recommended to use rife-ncnn-vulkan instead of cain-ncnn-vulkan

routineLife1 avatar Nov 26 '20 20:11 routineLife1

Thanks. I will try that

noobtoob4lyfe avatar Nov 26 '20 20:11 noobtoob4lyfe

well - RIFE is NOT the new CAIN.

CAIN does things different and is much less VRAM hungry.

I hope there will be a working CAIN soon again.

Hudaldadi avatar Mar 31 '21 22:03 Hudaldadi

This looks very promising... https://github.com/google-research/frame-interpolation/

Hudaldadi avatar Jun 02 '22 18:06 Hudaldadi