[Stable Diffusion][Guide] WebUI → webui-user.bat

Path.

...\stable-diffusion-webui\webui-user.bat

Default template.

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=

call webui.bat

How do I update the latest version of the stable diffusion web UI?

In the "webui-user.bat" file, add "git pull" at the top of it and save the changes.
git pull
@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=

call webui.bat

How to apply dark UI theme mode?

set COMMANDLINE_ARGS=--theme dark

How to enable Xformers?

set COMMANDLINE_ARGS=--xformers
The Xformers library provides an optional method to accelerate image generation. This enhancement is exclusively available for NVIDIA GPUs, optimizing image generation and reducing VRAM usage. Older versions below 0.0.20 will produce non-deterministic results.

How do I reinstall or upgrade torch to the latest version?

set COMMANDLINE_ARGS=--reinstall-torch

How do I reinstall or upgrade Xformers to the latest version?

set COMMANDLINE_ARGS=--reinstall-xformers

How can the stable diffusion model consume less VRAM?

set COMMANDLINE_ARGS=--medvram
Makes the Stable Diffusion model consume less VRAM by splitting it into three parts - cond (for transforming text into numerical representation), first_stage (for converting a picture into latent space and back), and unet (for actual denoising of latent space) and making it so that only one is in VRAM at all times, sending others to CPU RAM. Lowers performance, but only by a bit - except if live previews are enabled.

Bugs

https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/15842

Comments