Small python webui for SD1.5 and SDXL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
stable-diffusion-micro-webui/run_web_example.sh

28 lines
699 B

#!/bin/bash
cd "$(dirname "$0")"
source .venv/bin/activate
# Needed for RDNA 2 cards
export HSA_OVERRIDE_GFX_VERSION=10.3.0
# Example use of SD 1.5 model - these are fast and easy on VRAM, but produce only 512px
#export SD_MODEL_PATH=models/realistic-vision-v51
#export SD_MODEL_TYPE=sd15
# Example use of SD XL model - these can produce 1024px but are slow and demand more VRAM
#export SD_MODEL_PATH=models/perfectdeliberate_v70.safetensors
export SD_MODEL_TYPE=sdxl
export SD_LOW_VRAM=1
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
# Example of LORA stack
#export SD_LORA_STACK="lora/detailed style xl.safetensors:0.7,lora/perfection style xl.safetensors:0.5"
python app.py