added medvram setting

This commit is contained in:
tsukimiya 2022-10-31 03:44:37 +09:00
parent b071f056ba
commit 892a7d5d17
1 changed files with 6 additions and 2 deletions

View File

@ -89,6 +89,10 @@
"\n", "\n",
"activate_deepdanbooru = False # Enable and install DeepDanbooru -> https://github.com/KichangKim/DeepDanbooru\n", "activate_deepdanbooru = False # Enable and install DeepDanbooru -> https://github.com/KichangKim/DeepDanbooru\n",
"\n", "\n",
"activate_medvram = True # Enable medvram option.\n",
" # Set to False if VRAM capacity is available.\n",
"\n",
"\n",
"# Don't put a trailing slash on directory paths.\n", "# Don't put a trailing slash on directory paths.\n",
"# If you change any settings here, rerun this cell.\n", "# If you change any settings here, rerun this cell.\n",
"\n", "\n",
@ -817,9 +821,9 @@
"# Enable optional args automatically\n", "# Enable optional args automatically\n",
"x_arg = '--xformers' if activate_xformers else ''\n", "x_arg = '--xformers' if activate_xformers else ''\n",
"dd_arg = '--deepdanbooru' if activate_deepdanbooru else ''\n", "dd_arg = '--deepdanbooru' if activate_deepdanbooru else ''\n",
"\n", "mvram_arg = '--medvram' if activate_medvram else ''\n",
"# Launch args go below:\n", "# Launch args go below:\n",
"!python webui.py {x_arg} {dd_arg} --gradio-debug --share --medvram # --gradio-auth me:password1234" "!python webui.py {x_arg} {dd_arg} {mvram_arg} --gradio-debug --share # --gradio-auth me:password1234"
] ]
}, },
{ {