Invoke 2.2.3 (#250)

lstein:
5c31feb3a1
This commit is contained in:
AbdBarho
2022-12-03 13:36:18 +01:00
committed by GitHub
parent 8df9d10a58
commit f1a1641add
5 changed files with 29 additions and 18 deletions

View File

@@ -21,10 +21,8 @@ MOUNTS["${ROOT}/models/CompVis/stable-diffusion-safety-checker"]=/data/.cache/hu
# hacks
MOUNTS["/opt/conda/lib/python3.10/site-packages/facexlib/weights"]=/data/.cache/
MOUNTS["${ROOT}/models/clipseg"]=/data/.cache/invoke/clipseg/
for to_path in "${!MOUNTS[@]}"; do
set -Eeuo pipefail
from_path="${MOUNTS[${to_path}]}"
@@ -40,7 +38,8 @@ for to_path in "${!MOUNTS[@]}"; do
done
if "${PRELOAD}" == "true"; then
python3 -u scripts/preload_models.py --no-interactive --root . --config_file /docker/models.yaml
set -Eeuo pipefail
python3 -u scripts/preload_models.py --no-interactive --root ${ROOT} --config_file /docker/models.yaml
fi
exec "$@"