mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-04-21 06:14:00 +00:00
parent
79868d88e8
commit
e1e03229fd
5 changed files with 13 additions and 7 deletions
|
|
@ -14,6 +14,7 @@ MOUNTS["${ROOT}/models/ESRGAN"]="/data/ESRGAN"
|
|||
MOUNTS["${ROOT}/models/BSRGAN"]="/data/BSRGAN"
|
||||
MOUNTS["${ROOT}/models/RealESRGAN"]="/data/RealESRGAN"
|
||||
MOUNTS["${ROOT}/models/SwinIR"]="/data/SwinIR"
|
||||
MOUNTS["${ROOT}/models/ScuNET"]="/data/ScuNET"
|
||||
MOUNTS["${ROOT}/models/LDSR"]="/data/LDSR"
|
||||
|
||||
MOUNTS["${ROOT}/embeddings"]="/data/embeddings"
|
||||
|
|
@ -25,7 +26,8 @@ for to_path in "${!MOUNTS[@]}"; do
|
|||
set -Eeuo pipefail
|
||||
from_path="${MOUNTS[${to_path}]}"
|
||||
rm -rf "${to_path}"
|
||||
mkdir -p "$(dirname "${to_path}")"
|
||||
mkdir -vp "$from_path"
|
||||
mkdir -vp "$(dirname "${to_path}")"
|
||||
ln -sT "${from_path}" "${to_path}"
|
||||
echo Mounted $(basename "${from_path}")
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue