Skip to content

Commit 67c9d11

Browse files
authored
Update versions (#332)
### Update versions - auto: AUTOMATIC1111/stable-diffusion-webui@3715ece - invoke: invoke-ai/InvokeAI@6551527 Update xformers
1 parent 2829ef3 commit 67c9d11

File tree

5 files changed

+21
-19
lines changed

5 files changed

+21
-19
lines changed

docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
<<: *base_service
2929
profiles: ["auto"]
3030
build: ./services/AUTOMATIC1111
31-
image: sd-auto:44
31+
image: sd-auto:45
3232
environment:
3333
- CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api
3434

@@ -43,7 +43,7 @@ services:
4343
<<: *base_service
4444
profiles: ["invoke"]
4545
build: ./services/invoke/
46-
image: sd-invoke:22
46+
image: sd-invoke:23
4747
environment:
4848
- PRELOAD=true
4949
- CLI_ARGS=

services/AUTOMATIC1111/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN . /clone.sh clip-interrogator https://github.com/pharmapsychotic/clip-interr
2626

2727
FROM alpine:3.17 as xformers
2828
RUN apk add --no-cache aria2
29-
RUN aria2c -x 5 --dir / --out wheel.whl 'https://github.com/AbdBarho/stable-diffusion-webui-docker/releases/download/4.1.0/xformers-0.0.16.dev421-cp310-cp310-manylinux2014_x86_64.whl'
29+
RUN aria2c -x 5 --dir / --out wheel.whl 'https://github.com/AbdBarho/stable-diffusion-webui-docker/releases/download/5.0.0/xformers-0.0.17.dev449-cp310-cp310-manylinux2014_x86_64.whl'
3030

3131
FROM python:3.10.9-slim
3232

@@ -67,15 +67,15 @@ RUN --mount=type=cache,target=/root/.cache/pip \
6767
# Note: don't update the sha of previous versions because the install will take forever
6868
# instead, update the repo state in a later step
6969

70-
ARG SHA=3993aa43e95bb60b9df977946af988f119525a71
70+
ARG SHA=3715ece0adce7bf7c5e9c5ab3710b2fdc3848f39
7171
RUN --mount=type=cache,target=/root/.cache/pip <<EOF
7272
cd stable-diffusion-webui
7373
git fetch
7474
git reset --hard ${SHA}
7575
pip install -r requirements_versions.txt
7676
EOF
7777

78-
RUN --mount=type=cache,target=/root/.cache/pip pip install -U opencv-python-headless fastapi==0.90.1
78+
RUN --mount=type=cache,target=/root/.cache/pip pip install -U opencv-python-headless
7979

8080
COPY . /docker
8181

services/invoke/Dockerfile

+10-8
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
FROM alpine:3.17 as xformers
44
RUN apk add --no-cache aria2
5-
RUN aria2c -x 5 --dir / --out wheel.whl 'https://github.com/AbdBarho/stable-diffusion-webui-docker/releases/download/4.1.0/xformers-0.0.16.dev421-cp310-cp310-manylinux2014_x86_64.whl'
5+
RUN aria2c -x 5 --dir / --out wheel.whl 'https://github.com/AbdBarho/stable-diffusion-webui-docker/releases/download/5.0.0/xformers-0.0.17.dev449-cp310-cp310-manylinux2014_x86_64.whl'
66

77

88

@@ -12,7 +12,7 @@ SHELL ["/bin/bash", "-ceuxo", "pipefail"]
1212
ENV DEBIAN_FRONTEND=noninteractive PIP_EXISTS_ACTION=w PIP_PREFER_BINARY=1
1313

1414

15-
RUN pip install torch==1.13.1+cu117 torchvision --extra-index-url https://download.pytorch.org/whl/cu117
15+
RUN --mount=type=cache,target=/root/.cache/pip pip install torch==1.13.1+cu117 torchvision --extra-index-url https://download.pytorch.org/whl/cu117
1616

1717
RUN apt-get update && apt-get install git -y && apt-get clean
1818

@@ -41,15 +41,16 @@ ln -sf opencv4.pc opencv.pc
4141
EOF
4242

4343

44-
ARG BRANCH=main SHA=80c5322cccc6f9c6f77aaea80b4bb95e25bc05ba
44+
ARG BRANCH=main SHA=6551527fe249dc7a44e3fab9db9451c0dc3ad851
4545
RUN --mount=type=cache,target=/root/.cache/pip <<EOF
4646
git fetch
4747
git reset --hard
4848
git checkout ${BRANCH}
4949
git reset --hard ${SHA}
50-
egrep -v '^-e .' environments-and-requirements/requirements-lin-cuda.txt > req.txt
51-
pip install -r req.txt
52-
rm req.txt
50+
pip install .
51+
# egrep -v '^-e .' environments-and-requirements/requirements-lin-cuda.txt > req.txt
52+
# pip install -r req.txt
53+
# rm req.txt
5354
EOF
5455

5556

@@ -62,9 +63,10 @@ RUN --mount=type=cache,target=/root/.cache/pip \
6263
RUN touch invokeai.init
6364
COPY . /docker/
6465

66+
# mkdir configs && cp invokeai/configs/INITIAL_MODELS.yaml configs/models.yaml
6567

66-
ENV ROOT=/stable-diffusion PYTHONPATH="${PYTHONPATH}:${ROOT}" PRELOAD=false CLI_ARGS="" HF_HOME=/root/.cache/huggingface
68+
ENV PYTHONUNBUFFERED=1 ROOT=/stable-diffusion PYTHONPATH="${PYTHONPATH}:${ROOT}" PRELOAD=false CLI_ARGS="" HF_HOME=/root/.cache/huggingface
6769
EXPOSE 7860
6870

6971
ENTRYPOINT ["/docker/entrypoint.sh"]
70-
CMD python3 -u scripts/invoke.py --web --host 0.0.0.0 --port 7860 --config /docker/models.yaml --root_dir ${ROOT} --outdir /output/invoke ${CLI_ARGS}
72+
CMD invokeai --web --host 0.0.0.0 --port 7860 --config /docker/models.yaml --root_dir ${ROOT} --outdir /output/invoke ${CLI_ARGS}

services/invoke/entrypoint.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ for to_path in "${!MOUNTS[@]}"; do
3838
echo Mounted $(basename "${from_path}")
3939
done
4040

41-
if "${PRELOAD}" == "true"; then
42-
set -Eeuo pipefail
43-
python3 -u scripts/preload_models.py --skip-sd-weights --root ${ROOT} --config_file /docker/models.yaml
44-
fi
41+
# if "${PRELOAD}" == "true"; then
42+
# set -Eeuo pipefail
43+
# python3 -u scripts/preload_models.py --skip-sd-weights --root ${ROOT} --config_file /docker/models.yaml
44+
# fi
4545

4646
exec "$@"

services/invoke/models.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ stable-diffusion-1.5:
99
description: Stable Diffusion version 1.5
1010
weights: /data/StableDiffusion/v1-5-pruned-emaonly.ckpt
1111
vae: /data/VAE/vae-ft-mse-840000-ema-pruned.ckpt
12-
config: ./configs/stable-diffusion/v1-inference.yaml
12+
config: /stable-diffusion/invokeai/configs/stable-diffusion/v1-inference.yaml
1313
width: 512
1414
height: 512
1515
default: true
1616
inpainting-1.5:
1717
description: RunwayML SD 1.5 model optimized for inpainting
1818
weights: /data/StableDiffusion/sd-v1-5-inpainting.ckpt
1919
vae: /data/VAE/vae-ft-mse-840000-ema-pruned.ckpt
20-
config: ./configs/stable-diffusion/v1-inpainting-inference.yaml
20+
config: /stable-diffusion/invokeai/configs/stable-diffusion/v1-inpainting-inference.yaml
2121
width: 512
2222
height: 512
2323
default: false

0 commit comments

Comments
 (0)