From 61aa9a874f44997d76bb9a525ac6f6cd51700a4d Mon Sep 17 00:00:00 2001 From: Alex Nasa Date: Fri, 18 Aug 2023 22:09:31 +0100 Subject: [PATCH] Output fixed --- perceptual_inpaiting.ipynb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/perceptual_inpaiting.ipynb b/perceptual_inpaiting.ipynb index dc539c2..d605311 100644 --- a/perceptual_inpaiting.ipynb +++ b/perceptual_inpaiting.ipynb @@ -273,7 +273,8 @@ "\n", "dspth='./'\n", "\n", - "fourcc = cv2.VideoWriter_fourcc(*'mp4v')\n", + "fourcc = cv2.VideoWriter_fourcc(*'H264')\n", + "\n", "\n", "n_classes = 19\n", "net = BiSeNet(n_classes=n_classes)\n", @@ -316,6 +317,17 @@ "id": "P2DyzDfewG7V" }, "outputs": [], + "source": [ + "from IPython.display import Video\n", + "\n", + "Video(\"result.mp4\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], "source": [] } ], @@ -339,7 +351,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.6" + "version": "3.10.9" } }, "nbformat": 4,