From e29154d81ea8adce849e63f972ed01784a2bab87 Mon Sep 17 00:00:00 2001 From: Engineer-of-Stuff Date: Fri, 9 Sep 2022 10:19:44 -0600 Subject: [PATCH] restart kernel Former-commit-id: 50f936acf82112c8958f10e87fcd51e07345a89e --- StableDiffusionUI_Voldemort_paperspace.ipynb | 26 +++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/StableDiffusionUI_Voldemort_paperspace.ipynb b/StableDiffusionUI_Voldemort_paperspace.ipynb index 0d7706f..a8097ed 100644 --- a/StableDiffusionUI_Voldemort_paperspace.ipynb +++ b/StableDiffusionUI_Voldemort_paperspace.ipynb @@ -111,7 +111,6 @@ "cell_type": "markdown", "metadata": { "id": "F0EINk5M0s-w", - "jp-MarkdownHeadingCollapsed": true, "tags": [] }, "source": [ @@ -243,7 +242,6 @@ { "cell_type": "markdown", "metadata": { - "jp-MarkdownHeadingCollapsed": true, "tags": [] }, "source": [ @@ -275,6 +273,23 @@ " !ls -la --block-size=GB /notebooks/models/$file" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Restart the Kernel" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "os.kill(os.getpid(), 9)" + ] + }, { "cell_type": "markdown", "metadata": { @@ -328,13 +343,6 @@ "\n", "!python /notebooks/stable-diffusion-webui/webui.py --share --ckpt $model_file --show-negative-prompt" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": {