From 26bf13d88206f43d4f410ad920fd08a19f1f1a2a Mon Sep 17 00:00:00 2001 From: lamafab <42901763+lamafab@users.noreply.github.com> Date: Sun, 18 Sep 2022 22:20:03 +0200 Subject: [PATCH] preload models in lstein mount --- services/lstein/mount.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/lstein/mount.sh b/services/lstein/mount.sh index ef36444..2fcbd17 100755 --- a/services/lstein/mount.sh +++ b/services/lstein/mount.sh @@ -14,6 +14,9 @@ if test -f /cache/models/GFPGANv1.3.pth; then echo "Mounted GFPGANv1.3.pth" fi +# Preload models. See https://github.com/lstein/stable-diffusion/issues/34 +python3 scripts/preload_models.py + # facexlib FACEX_WEIGHTS=/opt/conda/lib/python3.8/site-packages/facexlib/weights