Skip to content

Commit

Permalink
Fix preload for Invoke (AbdBarho#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdBarho authored and Jordan-Lambda committed Aug 2, 2023
1 parent 8f3f7c0 commit a373986
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
8 changes: 4 additions & 4 deletions services/invoke/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"

0 comments on commit a373986

Please sign in to comment.