diff --git a/README.md b/README.md index c7a4e363fed..be5c2634a30 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,8 @@ Alternatively, use online services (like Google Colab): 1. Install [Python 3.10.6](https://www.python.org/downloads/release/python-3106/) (Newer version of Python does not support torch), checking "Add Python to PATH". 2. Install [git](https://git-scm.com/download/win). 3. Download the stable-diffusion-webui repository, for example by running `git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git`. -4. Run `webui-user.bat` from Windows Explorer as normal, non-administrator, user. +4. Run `webui.bat` from Windows Explorer as a normal, non-administrator, user, for the first time. +5. If you want to change any options, use `webui-user.bat` or copy `webui-user.bat.in` to `webui-user.bat`, change it and run it. ### Automatic Installation on Linux 1. Install the dependencies: diff --git a/webui-user.bat b/webui-user.bat.in similarity index 100% rename from webui-user.bat rename to webui-user.bat.in diff --git a/webui.bat b/webui.bat index a630ea4d9ff..1a3a584ae8f 100644 --- a/webui.bat +++ b/webui.bat @@ -4,6 +4,12 @@ if not defined PYTHON (set PYTHON=python) if defined GIT (set "GIT_PYTHON_GIT_EXECUTABLE=%GIT%") if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv") +if not exist webui-user.bat ( + if exist webui-user.bat.in ( + copy webui-user.bat.in webui-user.bat + ) +) + set SD_WEBUI_RESTART=tmp/restart set ERROR_REPORTING=FALSE