Fix preload for Invoke (#346)

Refs #345
pull/349/head
AbdBarho 1 year ago committed by GitHub
parent c54e26348e
commit aa69f11230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,7 +43,7 @@ services:
<<: *base_service
profiles: ["invoke"]
build: ./services/invoke/
image: sd-invoke:25
image: sd-invoke:26
environment:
- PRELOAD=true
- CLI_ARGS=

@ -38,9 +38,9 @@ for to_path in "${!MOUNTS[@]}"; do
echo Mounted $(basename "${from_path}")
done
# if "${PRELOAD}" == "true"; then
# set -Eeuo pipefail
# python3 -u scripts/preload_models.py --skip-sd-weights --root ${ROOT} --config_file /docker/models.yaml
# fi
if "${PRELOAD}" == "true"; then
set -Eeuo pipefail
invokeai-configure --skip-sd-weights --root ${ROOT} --yes
fi
exec "$@"

Loading…
Cancel
Save