mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-06-13 12:04:56 +03:00
710280c7ab
- auto: https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/2995107fa24cfd72b0a991e18271dcde148c2807 - More samplers - Textual inversion training - hlky: https://github.com/sd-webui/stable-diffusion-webui/commit/1a9c053cb7b6832695771db2555c0adc9b41e95f - Build times are SLOW - lstein: https://github.com/lstein/stable-diffusion/commit/4f247a3672474bd9c46060bab6087dbf9e2531f3 - Prepare for 2.0 release - very cool new UI!
29 lines
861 B
Bash
Executable File
29 lines
861 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -Eeuo pipefail
|
|
|
|
declare -A MOUNTS
|
|
|
|
# cache
|
|
MOUNTS["/root/.cache"]=/data/.cache
|
|
# ui specific
|
|
MOUNTS["${PWD}/models/ldm/stable-diffusion-v1/model.ckpt"]=/data/StableDiffusion/model.ckpt
|
|
MOUNTS["${PWD}/src/gfpgan/experiments/pretrained_models/GFPGANv1.4.pth"]=/data/GFPGAN/GFPGANv1.4.pth
|
|
MOUNTS["${PWD}/ldm/dream/restoration/codeformer/weights"]=/data/CodeFormer
|
|
# hacks
|
|
MOUNTS["/opt/conda/lib/python3.9/site-packages/facexlib/weights"]=/data/.cache
|
|
MOUNTS["/opt/conda/lib/python3.9/site-packages/realesrgan/weights"]=/data/RealESRGAN
|
|
|
|
for to_path in "${!MOUNTS[@]}"; do
|
|
set -Eeuo pipefail
|
|
from_path="${MOUNTS[${to_path}]}"
|
|
rm -rf "${to_path}"
|
|
mkdir -p "$(dirname "${to_path}")"
|
|
ln -sT "${from_path}" "${to_path}"
|
|
echo Mounted $(basename "${from_path}")
|
|
done
|
|
|
|
if "${PRELOAD}" == "true"; then
|
|
python3 -u scripts/preload_models.py
|
|
fi
|