Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo with Videos #9

Open
bis70 opened this issue Jul 7, 2022 · 3 comments
Open

Demo with Videos #9

bis70 opened this issue Jul 7, 2022 · 3 comments

Comments

@bis70
Copy link

bis70 commented Jul 7, 2022

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

@ltkong218
Copy link
Owner

ltkong218 commented Jul 18, 2022

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
Copy link

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
Copy link
Owner

ltkong218 commented Oct 20, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants