Skip to content

Commit 3c544dd

Browse files
authored
1 parent 42cc17d commit 3c544dd

File tree

10 files changed

+53
-30
lines changed

10 files changed

+53
-30
lines changed

LICENSE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,11 @@ use).
9292

9393
By using this software, you also agree to the following licenses:
9494
https://github.com/CompVis/stable-diffusion/blob/main/LICENSE
95+
https://github.com/sd-webui/stable-diffusion-webui/blob/master/LICENSE
96+
https://github.com/invoke-ai/InvokeAI/blob/main/LICENSE
97+
https://github.com/cszn/BSRGAN/blob/main/LICENSE
98+
https://github.com/sczhou/CodeFormer/blob/master/LICENSE
9599
https://github.com/TencentARC/GFPGAN/blob/master/LICENSE
96100
https://github.com/xinntao/Real-ESRGAN/blob/master/LICENSE
101+
https://github.com/xinntao/ESRGAN/blob/master/LICENSE
102+
https://github.com/cszn/SCUNet/blob/main/LICENSE

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ This repository provides multiple UIs for you to play around with stable diffusi
2323
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
2424
| ![](https://user-images.githubusercontent.com/24505302/189541954-46afd772-d0c8-4005-874c-e2eca40c02f2.jpg) | ![](https://user-images.githubusercontent.com/24505302/189541956-5b528de7-1b5d-479f-a1db-d3f5a53afc59.jpg) | ![](https://user-images.githubusercontent.com/24505302/189541957-cf78b352-a071-486d-8889-f26952779a61.jpg) |
2525

26-
### hlky
26+
### hlky (sd-webui)
2727

28-
[hlky's fork](https://github.com/hlky/stable-diffusion-webui) is one of the most popular UIs, with many features:
28+
[hlky's fork](https://github.com/sd-webui/stable-diffusion-webui) is one of the most popular UIs, with many features:
2929

3030
- Text to image, with many samplers
3131
- Image to image, with masking, cropping, in-painting, variations.
@@ -42,7 +42,7 @@ Screenshots:
4242

4343

4444

45-
### lstein
45+
### lstein (InvokeAI)
4646

4747
[lstein's fork](https://github.com/invoke-ai/InvokeAI) is one of the earliest with a wonderful WebUI.
4848
- Text to image, with many samplers

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ services:
2727
<<: *base_service
2828
profiles: ["hlky"]
2929
build: ./services/hlky/
30+
image: sd-hlky:1
3031
environment:
3132
- CLI_ARGS=--optimized-turbo
3233
- USE_STREAMLIT=0
@@ -35,6 +36,7 @@ services:
3536
<<: *base_service
3637
profiles: ["auto"]
3738
build: ./services/AUTOMATIC1111
39+
image: sd-auto:1
3840
environment:
3941
- CLI_ARGS=--allow-code --medvram --xformers
4042

@@ -49,6 +51,7 @@ services:
4951
<<: *base_service
5052
profiles: ["lstein"]
5153
build: ./services/lstein/
54+
image: sd-lstein:1
5255
environment:
5356
- PRELOAD=true
5457
- CLI_ARGS=

services/AUTOMATIC1111/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ EOF
2020

2121
RUN git clone https://github.com/crowsonkb/k-diffusion.git repositories/k-diffusion && cd repositories/k-diffusion && git reset --hard f4e99857772fc3a126ba886aadf795a332774878
2222

23-
FROM python:3.10-slim as xformers
24-
SHELL ["/bin/bash", "-ceuxo", "pipefail"]
25-
RUN pip install gdown
26-
RUN gdown https://drive.google.com/uc?id=1SqwicrLx1TrG_sbbEoIF_3TUHd4EYSmw -O /wheel.whl
23+
24+
FROM alpine:3 as xformers
25+
RUN apk add aria2
26+
RUN aria2c --dir / --out wheel.whl 'https://github.com/AbdBarho/stable-diffusion-webui-docker/releases/download/2.1.0/xformers-0.0.14.dev0-cp310-cp310-linux_x86_64.whl'
2727

2828
FROM python:3.10-slim
2929

@@ -57,15 +57,15 @@ RUN apt-get install jq moreutils -y
5757
# Note: don't update the sha of previous versions because the install will take forever
5858
# instead, update the repo state in a later step
5959

60-
ARG SHA=36a0ba357ab0742c3c4a28437b68fb29a235afbe
60+
ARG SHA=f49c08ea566385db339c6628f65c3a121033f67c
6161
RUN <<EOF
6262
cd stable-diffusion-webui
6363
git pull --rebase
6464
git reset --hard ${SHA}
65-
pip install --prefer-binary --no-cache-dir -r requirements_versions.txt
65+
pip install -r requirements_versions.txt
6666
EOF
6767

68-
RUN pip install --prefer-binary --no-cache-dir opencv-python-headless \
68+
RUN pip install opencv-python-headless \
6969
git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 \
7070
git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 \
7171
pyngrok
@@ -84,4 +84,4 @@ WORKDIR ${WORKDIR}
8484
EXPOSE 7860
8585
# run, -u to not buffer stdout / stderr
8686
CMD /docker/mount.sh && \
87-
python3 -u ../../webui.py --listen --port 7860 --ckpt-dir ${ROOT}/models/Stable-diffusion ${CLI_ARGS}
87+
python3 -u ../../webui.py --listen --port 7860 --ckpt-dir ${ROOT}/models/Stable-diffusion --theme dark ${CLI_ARGS}

services/download/download.sh

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ set -Eeuo pipefail
44

55
mkdir -p /data/.cache /data/StableDiffusion /data/Codeformer /data/GFPGAN /data/ESRGAN /data/BSRGAN /data/RealESRGAN /data/SwinIR /data/LDSR /data/ScuNET /data/embeddings
66

7-
cat <<EOF
8-
By using this software, you agree to the following licenses:
9-
https://github.com/CompVis/stable-diffusion/blob/main/LICENSE
10-
https://github.com/TencentARC/GFPGAN/blob/master/LICENSE
11-
https://github.com/xinntao/Real-ESRGAN/blob/master/LICENSE
12-
EOF
13-
147
echo "Downloading, this might take a while..."
158

169
aria2c --input-file /docker/links.txt --dir /data --continue
@@ -19,6 +12,18 @@ echo "Checking SHAs..."
1912

2013
parallel --will-cite -a /docker/checksums.sha256 "echo -n {} | sha256sum -c"
2114

22-
# fix potential permissions
23-
# TODO: need something better than this:
24-
# chmod -R 777 /data /output
15+
# aria2c already does hash check
16+
# cc6cb27103417325ff94f52b7a5d2dde45a7515b25c255d8e396c90014281516 /data/StableDiffusion/v1-5-pruned-emaonly.ckpt
17+
cat <<EOF
18+
By using this software, you agree to the following licenses:
19+
https://github.com/CompVis/stable-diffusion/blob/main/LICENSE
20+
https://github.com/AbdBarho/stable-diffusion-webui-docker/blob/master/LICENSE
21+
https://github.com/sd-webui/stable-diffusion-webui/blob/master/LICENSE
22+
https://github.com/invoke-ai/InvokeAI/blob/main/LICENSE
23+
https://github.com/cszn/BSRGAN/blob/main/LICENSE
24+
https://github.com/sczhou/CodeFormer/blob/master/LICENSE
25+
https://github.com/TencentARC/GFPGAN/blob/master/LICENSE
26+
https://github.com/xinntao/Real-ESRGAN/blob/master/LICENSE
27+
https://github.com/xinntao/ESRGAN/blob/master/LICENSE
28+
https://github.com/cszn/SCUNet/blob/main/LICENSE
29+
EOF

services/download/links.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
magnet:?xt=urn:btih:2daef5b5f63a16a9af9169a529b1a773fc452637&dn=v1-5-pruned-emaonly.ckpt&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337%2fannounce&tr=udp%3a%2f%2f9.rarbg.com%3a2810%2fannounce&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a6969%2fannounce&tr=udp%3a%2f%2fopentracker.i2p.rocks%3a6969%2fannounce&tr=https%3a%2f%2fopentracker.i2p.rocks%3a443%2fannounce&tr=http%3a%2f%2ftracker.openbittorrent.com%3a80%2fannounce&tr=udp%3a%2f%2ftracker.torrent.eu.org%3a451%2fannounce&tr=udp%3a%2f%2fopen.stealth.si%3a80%2fannounce&tr=udp%3a%2f%2fvibe.sleepyinternetfun.xyz%3a1738%2fannounce&tr=udp%3a%2f%2ftracker2.dler.org%3a80%2fannounce&tr=udp%3a%2f%2ftracker1.bt.moack.co.kr%3a80%2fannounce&tr=udp%3a%2f%2ftracker.zemoj.com%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.tiny-vps.com%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.theoks.net%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.publictracker.xyz%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.monitorit4.me%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.moeking.me%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.lelux.fi%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.dler.org%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.army%3a6969%2fannounce
2+
select-file=1
3+
index-out=1=StableDiffusion/v1-5-pruned-emaonly.ckpt
4+
follow-torrent=mem
5+
follow-metalink=mem
6+
seed-time=0
7+
# this is the only way aria2c won't fail if the file already exists
8+
check-integrity=true
19
https://drive.yerf.org/wl/?id=EBfTrmcCCUAGaQBXVIj5lJmEhjoP1tgl&mode=grid&download=1
210
out=StableDiffusion/model.ckpt
311
https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/GFPGANv1.4.pth

services/hlky/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ conda clean -a -y
2222
EOF
2323

2424

25-
ARG BRANCH=dev SHA=bd57d22f2e0ec7eed084bdf2a4c0dcc0ed745daf
25+
ARG BRANCH=dev SHA=8d1e42b9c50c747d056b0a98f3c2eb7652fb73a7
2626
RUN <<EOF
2727
cd stable-diffusion
2828
git fetch

services/hlky/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ echo "USE_STREAMLIT = ${USE_STREAMLIT}"
66
if [ "${USE_STREAMLIT}" == "1" ]; then
77
python -u -m streamlit run scripts/webui_streamlit.py
88
else
9-
python3 -u scripts/webui.py --outdir /output --ckpt /data/StableDiffusion/model.ckpt ${CLI_ARGS}
9+
python3 -u scripts/webui.py --outdir /output --ckpt /data/StableDiffusion/v1-5-pruned-emaonly.ckpt ${CLI_ARGS}
1010
fi
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
general:
2-
outdir: /outputs
3-
default_model: "Stable Diffusion v1.4"
4-
default_model_path: /data/StableDiffusion/model.ckpt
5-
outdir_txt2img: /outputs/txt2img-samples
6-
outdir_img2img: /outputs/img2img-samples
7-
optimized: True
2+
version: 1.20.0
3+
outdir: /output
4+
default_model: "Stable Diffusion v1.5"
5+
default_model_path: /data/StableDiffusion/v1-5-pruned-emaonly.ckpt
6+
outdir_txt2img: /output/txt2img-samples
7+
outdir_img2img: /output/img2img-samples
8+
outdir_img2txt: /output/img2txt
89
optimized_turbo: True

services/lstein/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ conda clean -a -y
2424
EOF
2525

2626

27-
ARG BRANCH=development SHA=fe2a2cfc8b6156805c420c026c5ef8bbb256899e
27+
ARG BRANCH=development SHA=554445a985d970200095bbcb109273a49c462682
2828
RUN <<EOF
2929
cd stable-diffusion
3030
git fetch

0 commit comments

Comments
 (0)