From 422d2a908c34052c87ff0e88872a46cb0c1e7f34 Mon Sep 17 00:00:00 2001 From: hzwer <598460606@163.com> Date: Wed, 18 Nov 2020 11:29:08 +0800 Subject: [PATCH 1/3] Update README.md --- README.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index aadcd72..ce731ee 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_parallel.py --times=2 --video video.mp4 ``` (Try our parallel process to get 100% speedup!) ``` -$ python3 inference_mp4_2x.py --video video.mp4 --montage --png +$ python3 inference_video_parallel.py --times=2 --video video.mp4 --fps=60 +``` +(add slomo effect) +``` +$ python3 inference_video.py --video video.mp4 --montage --png ``` (if you want to montage the origin video, and save the png format output) -``` 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. From d76b125c9b789591ee7c093a09270b8f110989f6 Mon Sep 17 00:00:00 2001 From: hzwer <598460606@163.com> Date: Wed, 18 Nov 2020 11:44:18 +0800 Subject: [PATCH 2/3] Update colab --- Colab_demo.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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": [] From 46fee89a85f502e3f21dfa7a65bd10d27ae1b884 Mon Sep 17 00:00:00 2001 From: hzwer <598460606@163.com> Date: Wed, 18 Nov 2020 11:45:31 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ce731ee..86fd8d6 100644 --- a/README.md +++ b/README.md @@ -46,17 +46,17 @@ $ python3 inference_video.py --times=2 --video video.mp4 ``` (if you want 4X interpolation) ``` -$ python3 inference_video_parallel.py --times=2 --video video.mp4 -``` -(Try our parallel process to get 100% speedup!) -``` -$ python3 inference_video_parallel.py --times=2 --video video.mp4 --fps=60 +$ python3 inference_video.py --times=2 --video video.mp4 --fps=60 ``` (add slomo effect) ``` $ 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.