add models
This commit is contained in:
commit
0d86013fc8
4 changed files with 24 additions and 0 deletions
24
run
Executable file
24
run
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue