Open bis70 opened 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
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.
Can I somehow use videos (mp4) instead of images with demo_2x.py