IFRNet icon indicating copy to clipboard operation
IFRNet copied to clipboard

Demo with Videos

Open bis70 opened this issue 3 years ago • 3 comments

Can I somehow use videos (mp4) instead of images with demo_2x.py

bis70 avatar Jul 07 '22 13:07 bis70

I suggest that you can use opencv-python package and refer to Python - Extracting and Saving Video Frames. To answer your question, you can refer to the following steps:

  1. extract frames from original video
  2. interpolate intermediate frames referring to demo_2x.py
  3. create target video from above interpolated frames

ltkong218 avatar Jul 18 '22 07:07 ltkong218

Thanks for sharing this great work! How would I go about running a longer image sequence using demo_2x.py and save the resulting png files instead of gifs?

noobtoob4lyfe avatar Oct 18 '22 02:10 noobtoob4lyfe

You can save the imgt_pred_np by imsave('./figures/out_2x.png', imgt_pred_np), where you should import imsave function by from imageio import imsave. For longer image sequences, you can write a loop function and repeat corresponding operations.

ltkong218 avatar Oct 20 '22 09:10 ltkong218