remove symlink to GFPGANv1.4

also re-add mkdir to prevent action from failing
This commit is contained in:
mauwii 2022-11-01 01:51:12 +01:00 committed by Lincoln Stein
parent aa3a774f73
commit c30ef0895d

View File

@ -44,6 +44,7 @@ ARG invokeai_git=https://github.com/invoke-ai/InvokeAI.git
ARG project_name=invokeai
RUN git clone ${invokeai_git} /${project_name} \
&& cp /${project_name}/configs/models.yaml.example /${project_name}/configs/models.yaml \
&& mkdir -p models/ldm/stable-diffusion-v1 \
&& ln -s /data/models/v1-5-pruned-emaonly.ckpt /${project_name}/models/ldm/stable-diffusion-v1/v1-5-pruned-emaonly.ckpt \
&& ln -s /data/outputs/ /${project_name}/outputs
@ -63,7 +64,6 @@ RUN source ${conda_prefix}/etc/profile.d/conda.sh \
&& rm -Rf ~/.cache \
&& conda clean -afy \
&& echo "conda activate ${project_name}" >> ~/.bashrc \
&& ln -s /data/models/GFPGANv1.4.pth ./src/gfpgan/experiments/pretrained_models/GFPGANv1.4.pth \
&& conda activate ${project_name} \
&& python scripts/preload_models.py \
--no-interactive