From 4f58c0a9fbfb42dca908b011266a462fb9357fef Mon Sep 17 00:00:00 2001 From: Abdullah Barhoum Date: Thu, 1 Sep 2022 23:43:14 +0200 Subject: [PATCH] Update version --- build/Dockerfile | 2 +- build/mount.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 9cc0381..8219835 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -12,7 +12,7 @@ RUN apt-get update && apt install fonts-dejavu-core rsync -y && apt-get clean # Note: don't update the sha of previous versions because the install will take forever # instead, update the repo state in a later step -RUN cd stable-diffusion && git pull && git reset --hard ba12cc71f5170654f6047eb1d2b7993dcddf785c && \ +RUN cd stable-diffusion && git pull && git reset --hard e51657753737f98f8586701b4b7562b846db9d44 && \ conda env update --file environment.yaml --name base && conda clean -a -y # download dev UI version, update the sha below in case you want some other version diff --git a/build/mount.sh b/build/mount.sh index d6cc057..da07801 100644 --- a/build/mount.sh +++ b/build/mount.sh @@ -12,7 +12,12 @@ MODELS["/latent-diffusion/experiments/pretrained_models/project.yaml"]=LDSR.yaml for path in "${!MODELS[@]}"; do name=${MODELS[$path]} base=$(dirname "${path}") - test -f "/models/${name}" && mkdir -p "${base}" && ln -sf "/models/${name}" "${path}" && echo "Mounted ${name}" + from_path="/models/${name}" + if test -f "${from_path}"; then + mkdir -p "${base}" && ln -sf "${from_path}" "${path}" && echo "Mounted ${name}" + else + echo "Skipping ${name}" + fi done # force facexlib cache