diff --git a/Colab_demo.ipynb b/Colab_demo.ipynb index 7d44961..9a5d733 100644 --- a/Colab_demo.ipynb +++ b/Colab_demo.ipynb @@ -77,7 +77,7 @@ }, "source": [ "!nvidia-smi\n", - "!python3 inference_mp4_4x.py --video demo.mp4 --montage --fps=60 --skip" + "!python3 inference_video.py --times=2 --video demo.mp4 --montage --skip" ], "execution_count": null, "outputs": [] @@ -88,7 +88,7 @@ "id": "77KK6lxHgJhf" }, "source": [ - "Our demo.mp4 is 24FPS. So 4X and run it under 60FPS will provide a slomo effect. You can adjust the parameters for your own perference." + "Our demo.mp4 is 24FPS. You can adjust the parameters for your own perference." ] }, { @@ -98,7 +98,7 @@ }, "source": [ "!nvidia-smi\n", - "!python3 inference_mp4_4x_parallel.py --video demo.mp4 --fps=60 --skip" + "!python3 inference_video_parallel.py --times=1 --video demo.mp4 --skip" ], "execution_count": null, "outputs": [] @@ -120,7 +120,7 @@ "source": [ "from IPython.display import display, Image\n", "import moviepy.editor as mpy\n", - "display(mpy.ipython_display('demo_4x.mp4', height=256, max_duration=100.))" + "display(mpy.ipython_display('demo_4X_100fps.mp4', height=256, max_duration=100.))" ], "execution_count": null, "outputs": [] diff --git a/README.md b/README.md index aadcd72..86fd8d6 100644 --- a/README.md +++ b/README.md @@ -38,22 +38,25 @@ The models under different setting is coming soon. You can use our [demo video](https://drive.google.com/file/d/1i3xlKb7ax7Y70khcTcuePi6E7crO_dFc/view?usp=sharing) or use your own video to run our model. ``` -$ python3 inference_mp4_2x.py --video video.mp4 --fps=60 +$ python3 inference_video.py --times=1 --video video.mp4 ``` -(generate video_2x.mp4, you can use this script recursively) +(generate video_2X_xxfps.mp4, you can use this script recursively) ``` -$ python3 inference_mp4_4x.py --video video.mp4 --fps=60 +$ python3 inference_video.py --times=2 --video video.mp4 ``` -(if you want 4x interpolation) +(if you want 4X interpolation) ``` -$ python3 inference_mp4_4x_parallel.py --video video.mp4 --fps=60 +$ python3 inference_video.py --times=2 --video video.mp4 --fps=60 ``` -(Try our parallel process to get 100% speedup!) +(add slomo effect) ``` -$ python3 inference_mp4_2x.py --video video.mp4 --montage --png +$ python3 inference_video.py --video video.mp4 --montage --png ``` (if you want to montage the origin video, and save the png format output) ``` +$ python3 inference_video_parallel.py --times=2 --video video.mp4 +``` +(Try our parallel process to get 100% speedup!) The warning info, 'Warning: Your video has *** static frames, it may change the duration of the generated video.' means that your video has changed the frame rate by adding static frames, it is common if you have processed 24FPS video to 30FPS.