mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Add settings file
Signed-off-by: Daniel Grenner <daniel.grenner@ingka.ikea.com>
This commit is contained in:
parent
a196c45f15
commit
e817a28b8e
3
.gitignore
vendored
3
.gitignore
vendored
@ -8,4 +8,5 @@ __pycache__
|
|||||||
/ui-config.json
|
/ui-config.json
|
||||||
/outputs
|
/outputs
|
||||||
/config.json
|
/config.json
|
||||||
/log
|
/log
|
||||||
|
webui.settings.bat
|
@ -63,7 +63,7 @@ as model if it has .pth extension. Grab models from the [Model Database](https:/
|
|||||||
|
|
||||||
#### Troublehooting:
|
#### Troublehooting:
|
||||||
|
|
||||||
- if your version of Python is not in PATH (or if another version is), edit `webui.bat`, change the line `set PYTHON=python` to say the full path to your python executable: `set PYTHON=B:\soft\Python310\python.exe`. You can do this for python, but not for git.
|
- if your version of Python is not in PATH (or if another version is), create or modify `webui.settings.bat` in the root folder (same place as webui.bat), add the line `set PYTHON=python` to say the full path to your python executable: `set PYTHON=B:\soft\Python310\python.exe`. You can do this for python, but not for git.
|
||||||
- if you get out of memory errors and your videocard has low amount of VRAM (4GB), edit `webui.bat`, change line 5 to from `set COMMANDLINE_ARGS=` to `set COMMANDLINE_ARGS=--medvram` (see below for other possible options)
|
- if you get out of memory errors and your videocard has low amount of VRAM (4GB), edit `webui.bat`, change line 5 to from `set COMMANDLINE_ARGS=` to `set COMMANDLINE_ARGS=--medvram` (see below for other possible options)
|
||||||
- installer creates python virtual environment, so none of installed modules will affect your system installation of python if you had one prior to installing this.
|
- installer creates python virtual environment, so none of installed modules will affect your system installation of python if you had one prior to installing this.
|
||||||
- to prevent the creation of virtual environment and use your system python, edit `webui.bat` replacing `set VENV_DIR=venv` with `set VENV_DIR=`.
|
- to prevent the creation of virtual environment and use your system python, edit `webui.bat` replacing `set VENV_DIR=venv` with `set VENV_DIR=`.
|
||||||
@ -77,7 +77,7 @@ If you don't want or can't run locally, here is google collab that allows you to
|
|||||||
https://colab.research.google.com/drive/1Iy-xW9t1-OQWhb0hNxueGij8phCyluOh
|
https://colab.research.google.com/drive/1Iy-xW9t1-OQWhb0hNxueGij8phCyluOh
|
||||||
|
|
||||||
### What options to use for low VRAM videocards?
|
### What options to use for low VRAM videocards?
|
||||||
Use command line options by editing `webui.bat`, adding them to the end of the `set COMMANDLINE_ARGS=` line.
|
Use command line options by creating or modifying `webui.settings.bat` in the root folder (same place as webui.bat), adding a line with `set COMMANDLINE_ARGS=`, and adding the settings at the end of that line.
|
||||||
For example, `set COMMANDLINE_ARGS=--medvram --opt-split-attention`.
|
For example, `set COMMANDLINE_ARGS=--medvram --opt-split-attention`.
|
||||||
|
|
||||||
- If you have 4GB VRAM and want to make 512x512 (or maybe up to 640x640) images, use `--medvram`.
|
- If you have 4GB VRAM and want to make 512x512 (or maybe up to 640x640) images, use `--medvram`.
|
||||||
|
@ -5,6 +5,10 @@ set GIT=git
|
|||||||
set COMMANDLINE_ARGS=
|
set COMMANDLINE_ARGS=
|
||||||
set VENV_DIR=venv
|
set VENV_DIR=venv
|
||||||
|
|
||||||
|
if exist webui.settings.bat (
|
||||||
|
call webui.settings.bat
|
||||||
|
)
|
||||||
|
|
||||||
mkdir tmp 2>NUL
|
mkdir tmp 2>NUL
|
||||||
|
|
||||||
set TORCH_COMMAND=pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
|
set TORCH_COMMAND=pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
|
||||||
|
Loading…
Reference in New Issue
Block a user