@@ -7,9 +7,6 @@ RUN conda install pytorch==1.11.0 torchvision==0.12.0 cudatoolkit=11.3 -c pytorc
7
7
RUN git clone https://github.com/hlky/stable-diffusion.git && cd stable-diffusion && git reset --hard ff8c2d0b709f1e4180fb19fa5c27ec28c414cedd
8
8
RUN conda env update --file stable-diffusion/environment.yaml --name base && conda clean -a -y
9
9
10
- # Fix: Module PIL has not attribute "Resampling"
11
- RUN conda install -c anaconda pillow==9.2.0 && conda clean -a -y
12
-
13
10
14
11
SHELL ["/bin/bash" , "-ceuxo" , "pipefail" ]
15
12
@@ -18,8 +15,9 @@ RUN apt-get update && apt install fonts-dejavu-core rsync -y && apt-get clean
18
15
19
16
# Note: don't update the sha of previous versions because the install will take forever
20
17
# instead, update the repo state in a later step
21
- RUN cd stable-diffusion && git pull && git reset --hard d667ff52a36b4e79526f01555bfbf85428f334ce && \
22
- conda env update --file environment.yaml --name base && conda clean -a -y
18
+ RUN cd stable-diffusion && git pull && git reset --hard c84748aa6802c2f934687883a79bde745d2a58a6 && \
19
+ conda env update --file environment.yaml --name base && conda clean -a -y \
20
+ && pip install -U --no-cache-dir pyperclip
23
21
24
22
# download dev UI version, update the sha below in case you want some other version
25
23
# RUN <<EOF
45
43
RUN <<EOF
46
44
git clone https://github.com/devilismyfriend/latent-diffusion &&
47
45
cd /latent-diffusion &&
48
- git reset --hard 4119cf038fb953360fb004e48adb9913eed3594a &&
46
+ git reset --hard 6d61fc03f15273a457950f2cdc10dddf53ba6809 &&
49
47
# hacks all the way down
50
48
mv ldm ldm_latent &&
51
49
sed -i -- 's/from ldm/from ldm_latent/g' *.py
@@ -61,4 +59,4 @@ WORKDIR /stable-diffusion
61
59
ENV TRANSFORMERS_CACHE=/cache/transformers TORCH_HOME=/cache/torch CLI_ARGS=""
62
60
EXPOSE 7860
63
61
# run, -u to not buffer stdout / stderr
64
- CMD /docker/mount.sh && python3 -u scripts/webui.py --outdir /output --ckpt /models/model.ckpt --ldsr-dir /latent-diffusion --save-metadata ${CLI_ARGS}
62
+ CMD /docker/mount.sh && python3 -u scripts/webui.py --outdir /output --ckpt /models/model.ckpt --ldsr-dir /latent-diffusion ${CLI_ARGS}
0 commit comments