restart kernel

Former-commit-id: 50f936acf8
This commit is contained in:
Engineer-of-Stuff 2022-09-09 10:19:44 -06:00 committed by GitHub
parent 7ad7948e51
commit e29154d81e
1 changed files with 17 additions and 9 deletions

View File

@ -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": {