Skip to content

Instantly share code, notes, and snippets.

@appliedintelligencelab
Created September 29, 2023 20:50
Show Gist options
  • Save appliedintelligencelab/a77341614514296cf8f07030f9f073ab to your computer and use it in GitHub Desktop.
Save appliedintelligencelab/a77341614514296cf8f07030f9f073ab to your computer and use it in GitHub Desktop.
Powershell script to start Stable Diffusion Web UI (change first line)
$fullPath = "C:\Users\appli\Apps\stable-diffusion-webui\webui.py"
$path = Split-Path $fullPath -Parent
$file = Split-Path $fullPath -leaf
$Env:COMMANDLINE_ARGS = "--xformers --autolaunch --no-half-vae"
$Env:CUDA_VISIBLE_DEVICES = "0"
cd "$path"
.\venv\Scripts\activate
python $file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment