Skip to content

Commit 4464e9d

Browse files
authored
1 parent fb5407a commit 4464e9d

File tree

5 files changed

+27
-28
lines changed

5 files changed

+27
-28
lines changed

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ services:
2727
<<: *base_service
2828
profiles: ["hlky"]
2929
build: ./services/hlky/
30-
image: sd-hlky:3
30+
image: sd-hlky:4
3131
environment:
3232
- CLI_ARGS=--optimized-turbo
3333
- USE_STREAMLIT=0
@@ -36,7 +36,7 @@ services:
3636
<<: *base_service
3737
profiles: ["auto"]
3838
build: ./services/AUTOMATIC1111
39-
image: sd-auto:4
39+
image: sd-auto:5
4040
environment:
4141
- CLI_ARGS=--allow-code --medvram --xformers
4242

@@ -51,7 +51,7 @@ services:
5151
<<: *base_service
5252
profiles: ["lstein"]
5353
build: ./services/lstein/
54-
image: sd-lstein:3
54+
image: sd-lstein:4
5555
environment:
5656
- PRELOAD=true
5757
- CLI_ARGS=

services/AUTOMATIC1111/Dockerfile

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,35 +36,36 @@ ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1 PIP_NO_CACHE_DIR=1
3636

3737
RUN pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
3838

39-
RUN apt-get update && apt install fonts-dejavu-core rsync git -y && apt-get clean
39+
RUN apt-get update && apt install fonts-dejavu-core rsync git jq moreutils -y && apt-get clean
4040

4141

4242
RUN <<EOF
4343
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
4444
cd stable-diffusion-webui
45-
git reset --hard 1eb588cbf19924333b88beaa1ac0041904966640
45+
git reset --hard d885a4a57b72152745ca76192ef1bdda29e6461d
4646
pip install -r requirements_versions.txt
4747
EOF
4848

49-
ENV ROOT=/stable-diffusion-webui \
50-
WORKDIR=/stable-diffusion-webui/repositories/stable-diffusion
49+
50+
COPY --from=xformers /wheel.whl xformers-0.0.14.dev0-cp310-cp310-linux_x86_64.whl
51+
RUN pip install xformers-0.0.14.dev0-cp310-cp310-linux_x86_64.whl && rm xformers-0.0.14.dev0-cp310-cp310-linux_x86_64.whl
52+
53+
54+
ENV ROOT=/stable-diffusion-webui
5155

5256

5357
COPY --from=download /git/ ${ROOT}
5458
RUN mkdir ${ROOT}/interrogate && cp ${ROOT}/repositories/clip-interrogator/data/* ${ROOT}/interrogate
5559
RUN pip install --prefer-binary --no-cache-dir -r ${ROOT}/repositories/CodeFormer/requirements.txt
5660

57-
# TODO: move to top
58-
RUN apt-get install jq moreutils -y
59-
6061

6162
# Note: don't update the sha of previous versions because the install will take forever
6263
# instead, update the repo state in a later step
6364

64-
ARG SHA=737eb28faca8be2bb996ee0930ec77d1f7ebd939
65+
ARG SHA=35c45df28b303a05d56a13cb56d4046f08cf8c25
6566
RUN <<EOF
6667
cd stable-diffusion-webui
67-
git pull --rebase
68+
git fetch
6869
git reset --hard ${SHA}
6970
pip install -r requirements_versions.txt
7071
EOF
@@ -76,17 +77,13 @@ RUN pip install opencv-python-headless \
7677
gradio==3.4.1
7778
# gradio because #173 & https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/2858
7879

79-
COPY --from=xformers /wheel.whl xformers-0.0.14.dev0-cp310-cp310-linux_x86_64.whl
80-
RUN pip install xformers-0.0.14.dev0-cp310-cp310-linux_x86_64.whl
8180

8281
COPY . /docker
8382

84-
RUN <<EOF
85-
chmod +x /docker/mount.sh && python3 /docker/info.py ${ROOT}/modules/ui.py
86-
EOF
83+
RUN chmod +x /docker/mount.sh && python3 /docker/info.py ${ROOT}/modules/ui.py
8784

85+
WORKDIR ${ROOT}/repositories/stable-diffusion
8886
ENV CLI_ARGS=""
89-
WORKDIR ${WORKDIR}
9087
EXPOSE 7860
9188
# run, -u to not buffer stdout / stderr
9289
CMD /docker/mount.sh && \

services/hlky/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,20 @@ RUN conda install pytorch==1.11.0 torchvision==0.12.0 cudatoolkit=11.3 -c pytorc
1212
RUN apt-get update && apt install fonts-dejavu-core rsync gcc -y && apt-get clean
1313

1414

15+
ENV PIP_PREFER_BINARY=1 PIP_NO_CACHE_DIR=1
16+
1517
RUN <<EOF
1618
git config --global http.postBuffer 1048576000
17-
git clone https://github.com/sd-webui/stable-diffusion-webui.git stable-diffusion
19+
git clone https://github.com/Sygil-Dev/sygil-webui.git stable-diffusion
1820
cd stable-diffusion
19-
git reset --hard 1a9c053cb7b6832695771db2555c0adc9b41e95f
21+
git reset --hard 091520bed06f913c9f432f9f47ccbe22b46068d7
2022
conda env update --file environment.yaml -n base
2123
conda clean -a -y
2224
EOF
2325

26+
RUN apt-get update && apt install libsndfile1 ffmpeg -y && apt-get clean
2427

25-
ARG BRANCH=dev SHA=5f6141ae7c8520b250896c80ac938396164f78df
28+
ARG BRANCH=master SHA=091520bed06f913c9f432f9f47ccbe22b46068d7
2629
RUN <<EOF
2730
cd stable-diffusion
2831
git fetch

services/hlky/mount.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ MOUNTS["${PWD}/models/custom"]=/data/StableDiffusion
1616
# hack
1717
MOUNTS["${PWD}/models/gfpgan/GFPGANv1.3.pth"]=/data/GFPGAN/GFPGANv1.4.pth
1818
MOUNTS["${PWD}/models/gfpgan/GFPGANv1.4.pth"]=/data/GFPGAN/GFPGANv1.4.pth
19+
MOUNTS["${PWD}/gfpgan/weights"]=/data/.cache
1920

2021

2122
for to_path in "${!MOUNTS[@]}"; do

services/lstein/Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,25 @@ FROM continuumio/miniconda3:4.12.0
44

55
SHELL ["/bin/bash", "-ceuxo", "pipefail"]
66

7-
ENV DEBIAN_FRONTEND=noninteractive
7+
ENV DEBIAN_FRONTEND=noninteractive PIP_EXISTS_ACTION=w PIP_PREFER_BINARY=1 PIP_NO_CACHE_DIR=1
88

99
# now it requires python3.9
1010
RUN conda install python=3.9 && conda clean -a -y
1111
RUN conda install pytorch==1.11.0 torchvision==0.12.0 cudatoolkit=11.3 -c pytorch && conda clean -a -y
1212

13-
RUN apt-get update && apt install fonts-dejavu-core rsync gcc -y && apt-get clean
14-
15-
ENV PIP_EXISTS_ACTION=w
13+
RUN apt-get update && apt install fonts-dejavu-core -y && apt-get clean
1614

1715
RUN <<EOF
1816
git clone https://github.com/invoke-ai/InvokeAI.git stable-diffusion
1917
cd stable-diffusion
20-
git reset --hard 79e79b78aaeedb49afcc795e0e00eebfdbedee96
18+
git reset --hard 986cc49d7a8441a70c709c04a55016a1c783f2ed
2119
git config --global http.postBuffer 1048576000
22-
conda env update --file environment.yml -n base
20+
# conda env update --file environment.yml -n base
2321
conda clean -a -y
2422
EOF
2523

2624

27-
ARG BRANCH=development SHA=2b6d78e4363f3eca726228a40b6de832eb0ac040
25+
ARG BRANCH=development SHA=fdf9b1c40c243d6806e787877e42ae4c115790ee
2826
RUN <<EOF
2927
cd stable-diffusion
3028
git fetch

0 commit comments

Comments
 (0)