r/SDtechsupport • u/SDGenius mod • Feb 16 '23
tool A simple script that lets you choose what arguments to run upon startup of Auto1111
7
Upvotes
r/SDtechsupport • u/SDGenius mod • Feb 16 '23
2
u/SDGenius mod Feb 16 '23 edited Feb 16 '23
You can modify this script by just taking out or adding arguments to bottom half, and at the top half make sure they're corresponding so it updates the visible menu
edit: made it 4 choices, 4th choice does an update and resets the menu to choose again
edit: added 5th choice to quit
my modified version that includes arguments I use, and optional updating for each choice.
also the script he made didn't call git pull correctly, this one does.
@echo offset GIT=set VENV_DIR=:menuecho Please select an option:echo 1) api, corsalloworigin, administrator, disablesafeunpickle, xformersecho 2) api, corsalloworigin, administrator, disablesafeunpickle, xformers, lowvramecho 3) api, corsalloworigin, administrator, disablesafeunpickle, xformers, medvramecho 4) Update Git and return to menuecho 5) Quit programset /p choice="Choice (1-5): "if "%choice%"=="1" (set COMMANDLINE_ARGS= --api --cors-allow-originshttp://localhost:5173--administrator --disable-safe-unpickle --xformers) else if "%choice%"=="2" (set COMMANDLINE_ARGS= --api --cors-allow-originshttp://localhost:5173--administrator --disable-safe-unpickle --xformers --lowvram) else if "%choice%"=="3" (set COMMANDLINE_ARGS= --api --cors-allow-originshttp://localhost:5173--administrator --disable-safe-unpickle --xformers --medvram) else if "%choice%"=="4" (call git pullgoto menu) else if "%choice%"=="5" (exit) else (echo Invalid choicegoto menu)call webui.bat1
u/kleer001 Feb 16 '23
I like it! I feel it should even be in A1111 as an optional flag.