IFRNet
IFRNet copied to clipboard
Demo with Videos
Can I somehow use videos (mp4) instead of images with demo_2x.py
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:
- extract frames from original video
- interpolate intermediate frames referring to
demo_2x.py - create target video from above interpolated frames
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?
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.