24 lines
537 B
Bash
Executable file
24 lines
537 B
Bash
Executable file
#!/usr/bin/bash
|
|
set -e
|
|
cd "$(dirname "$(realpath "$0")")"
|
|
|
|
|
|
if ! [ -d 'repo' ]
|
|
then git clone https://github.com/lshqqytiger/stable-diffusion-webui-amdgpu-forge.git repo
|
|
fi
|
|
|
|
ln -sfrv models/checkpoints repo/models/Stable-diffusion
|
|
ln -sfrv models/loras repo/models/Lora
|
|
ln -sfrv models/embeddings repo/embeddings
|
|
cd repo
|
|
|
|
|
|
if ! [ -d 'venv' ]
|
|
then python3.11 -m venv venv
|
|
fi
|
|
|
|
. venv/bin/activate
|
|
pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/rocm6.1
|
|
|
|
|
|
./webui.sh
|