diff --git a/Video_2x.ipynb b/Video_2x.ipynb new file mode 100644 index 0000000..1dba9e8 --- /dev/null +++ b/Video_2x.ipynb @@ -0,0 +1,99 @@ +{ + "nbformat": 4, + "nbformat_minor": 0, + "metadata": { + "colab": { + "name": "Untitled0.ipynb", + "provenance": [], + "authorship_tag": "ABX9TyP+0B6TRKpXVh1+nIaWFkx2", + "include_colab_link": true + }, + "kernelspec": { + "name": "python3", + "display_name": "Python 3" + }, + "accelerator": "GPU" + }, + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "id": "view-in-github", + "colab_type": "text" + }, + "source": [ + "\"Open" + ] + }, + { + "cell_type": "code", + "metadata": { + "id": "FypCcZkNNt2p" + }, + "source": [ + "!git clone https://github.com/hzwer/arXiv2020-RIFE" + ], + "execution_count": null, + "outputs": [] + }, + { + "cell_type": "code", + "metadata": { + "id": "1wysVHxoN54f" + }, + "source": [ + "!gdown --id 1c1R7iF-ypN6USo-D2YH_ORtaH3tukSlo\n", + "!7z e RIFE_trained_model.zip" + ], + "execution_count": null, + "outputs": [] + }, + { + "cell_type": "code", + "metadata": { + "id": "AhbHfRBJRAUt" + }, + "source": [ + "!mkdir /content/arXiv2020-RIFE/train_log\n", + "!mv *.pkl /content/arXiv2020-RIFE/train_log/" + ], + "execution_count": 4, + "outputs": [] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "rirngW5uRMdg" + }, + "source": [ + "Please upload your video to content/arXiv2020-RIFE/" + ] + }, + { + "cell_type": "code", + "metadata": { + "id": "dnLn4aHHPzN3" + }, + "source": [ + "!nvidia-smi\n", + "%cd /content/arXiv2020-RIFE/\n", + "!python3 inference_mp4_2x.py --video video.mp4" + ], + "execution_count": null, + "outputs": [] + }, + { + "cell_type": "code", + "metadata": { + "id": "0zIBbVE3UfUD" + }, + "source": [ + "from IPython.display import display, Image\n", + "import moviepy.editor as mpy\n", + "display(mpy.ipython_display('video_2x.mp4', height=256, max_duration=100.))" + ], + "execution_count": null, + "outputs": [] + } + ] +} \ No newline at end of file