ltkong218 / IFRNet

IFRNet: Intermediate Feature Refine Network for Efficient Frame Interpolation (CVPR 2022)
MIT License
259 stars 23 forks source link

Demo with Videos #9

Open bis70 opened 2 years ago

bis70 commented 2 years ago

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

ltkong218 commented 2 years ago

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

noobtoob4lyfe commented 1 year ago

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?

ltkong218 commented 1 year ago

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.