Skip to content

Commit 3682303

Browse files
authored
Update (#139)
### Update versions - auto: AUTOMATIC1111/stable-diffusion-webui@03d6253 - History Tab IS NOT WORKING YET! #138 - hlky: Sygil-Dev/sygil-webui@fd51bab - lstein: invoke-ai/InvokeAI@fe2a2cf Closes #102 the config file has been moved to `data/config/auto`
1 parent 402c691 commit 3682303

File tree

7 files changed

+20
-80
lines changed

7 files changed

+20
-80
lines changed

data/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# for all of the stuff downloaded by transformers, pytorch, and others
22
/.cache
3+
# for UIs
4+
/config
35
# for all stable diffusion models (main, waifu diffusion, etc..)
46
/StableDiffusion
57
# others

docker-compose.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ services:
3434
<<: *base_service
3535
profiles: ["auto"]
3636
build: ./services/AUTOMATIC1111
37-
volumes:
38-
- *v1
39-
- *v2
40-
- ./services/AUTOMATIC1111/config.json:/stable-diffusion-webui/config.json
4137
environment:
4238
- CLI_ARGS=--allow-code --medvram
4339

services/AUTOMATIC1111/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,14 @@ ENV ROOT=/stable-diffusion-webui \
4646
COPY --from=download /git/ ${ROOT}
4747
RUN pip install --prefer-binary --no-cache-dir -r ${ROOT}/repositories/CodeFormer/requirements.txt
4848

49+
# TODO: move to top
50+
RUN apt-get install jq moreutils -y
51+
52+
4953
# Note: don't update the sha of previous versions because the install will take forever
5054
# instead, update the repo state in a later step
5155

52-
ARG SHA=6a9ea5b41cf92cd9e980349bb5034439f4e7a58b
56+
ARG SHA=03d62538aebeff51713619fe808c953bdb70193d
5357
RUN <<EOF
5458
cd stable-diffusion-webui
5559
git pull --rebase
@@ -61,7 +65,6 @@ RUN pip install --prefer-binary --no-cache-dir opencv-python-headless \
6165
git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 \
6266
git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 \
6367
pyngrok
64-
#xformers
6568

6669

6770

@@ -70,6 +73,7 @@ RUN <<EOF
7073
chmod +x /docker/mount.sh && python3 /docker/info.py ${ROOT}/modules/ui.py
7174
EOF
7275

76+
7377
ENV CLI_ARGS=""
7478
WORKDIR ${WORKDIR}
7579
EXPOSE 7860

services/AUTOMATIC1111/config.json

Lines changed: 1 addition & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -6,74 +6,5 @@
66
"outdir_txt2img_grids": "/output/txt2img-grids",
77
"outdir_img2img_grids": "/output/img2img-grids",
88
"outdir_save": "/output/saved",
9-
"font": "DejaVuSans.ttf",
10-
"__WARNING__": "DON'T CHANGE ANYTHING BEFORE THIS",
11-
12-
"add_model_hash_to_info": false,
13-
"code_former_weight": 0.5,
14-
"directories_filename_pattern": "",
15-
"directories_max_prompt_words": 8,
16-
"enable_batch_seeds": true,
17-
"enable_emphasis": true,
18-
"enable_pnginfo": true,
19-
"enable_quantization": false,
20-
"ESRGAN_tile": 192,
21-
"ESRGAN_tile_overlap": 8,
22-
"export_for_4chan": true,
23-
"face_restoration_model": null,
24-
"face_restoration_unload": false,
25-
"filter_nsfw": false,
26-
"grid_extended_filename": false,
27-
"grid_format": "png",
28-
"grid_only_if_multiple": true,
29-
"grid_save": true,
30-
"grid_save_to_dirs": false,
31-
"img2img_color_correction": false,
32-
"img2img_fix_steps": false,
33-
"interrogate_clip_dict_limit": 1500,
34-
"interrogate_clip_max_length": 48,
35-
"interrogate_clip_min_length": 24,
36-
"interrogate_clip_num_beams": 1,
37-
"interrogate_keep_models_in_memory": false,
38-
"interrogate_use_builtin_artists": true,
39-
"jpeg_quality": 80,
40-
"js_modal_lightbox": true,
41-
"js_modal_lightbox_initialy_zoomed": true,
42-
"ldsr_post_down": 1,
43-
"ldsr_pre_down": 1,
44-
"ldsr_steps": 30,
45-
"memmon_poll_rate": 8,
46-
"multiple_tqdm": true,
47-
"n_rows": -1,
48-
"outdir_grids": "",
49-
"random_artist_categories": [],
50-
"realesrgan_enabled_models": [
51-
"Real-ESRGAN 4x plus",
52-
"Real-ESRGAN 4x plus anime 6B",
53-
"Real-ESRGAN 2x plus",
54-
"Real-ESRGAN AnimeVideo",
55-
"Real-ESRGAN General WDN x4x3",
56-
"Real-ESRGAN General x4x3"
57-
],
58-
"return_grid": true,
59-
"samples_filename_format": "",
60-
"samples_filename_pattern": "",
61-
"samples_format": "png",
62-
"samples_log_stdout": false,
63-
"samples_save": true,
64-
"save_images_before_color_correction": false,
65-
"save_images_before_face_restoration": false,
66-
"save_selected_only": false,
67-
"save_to_dirs": false,
68-
"save_to_dirs_prompt_len": 10,
69-
"save_txt": false,
70-
"sd_model_checkpoint": null,
71-
"show_progress_every_n_steps": 7,
72-
"show_progressbar": true,
73-
"SWIN_tile": 192,
74-
"SWIN_tile_overlap": 8,
75-
"upscale_at_full_resolution_padding": 16,
76-
"upscaler_for_hires_fix": null,
77-
"upscaler_for_img2img": null,
78-
"use_original_name_batch": false
9+
"font": "DejaVuSans.ttf"
7910
}

services/AUTOMATIC1111/mount.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
set -Eeuo pipefail
44

5+
mkdir -p /data/config/auto/
6+
cp -n /docker/config.json /data/config/auto/config.json
7+
jq '. * input' /data/config/auto/config.json /docker/config.json | sponge /data/config/auto/config.json
8+
59
declare -A MOUNTS
610

711
MOUNTS["/root/.cache"]="/data/.cache"
@@ -19,6 +23,7 @@ MOUNTS["${ROOT}/models/LDSR"]="/data/LDSR"
1923
MOUNTS["${ROOT}/models/hypernetworks"]="/data/Hypernetworks"
2024

2125
MOUNTS["${ROOT}/embeddings"]="/data/embeddings"
26+
MOUNTS["${ROOT}/config.json"]="/data/config/auto/config.json"
2227

2328
# extra hacks
2429
MOUNTS["${ROOT}/repositories/CodeFormer/weights/facelib"]="/data/.cache"
@@ -27,10 +32,12 @@ for to_path in "${!MOUNTS[@]}"; do
2732
set -Eeuo pipefail
2833
from_path="${MOUNTS[${to_path}]}"
2934
rm -rf "${to_path}"
30-
mkdir -vp "$from_path"
35+
if [ -d "$from_path" ]; then
36+
mkdir -vp "$from_path"
37+
fi
3138
mkdir -vp "$(dirname "${to_path}")"
3239
ln -sT "${from_path}" "${to_path}"
3340
echo Mounted $(basename "${from_path}")
3441
done
3542

36-
mkdir -p /output/saved
43+
mkdir -p /output/saved /output/txt2img-images/ /output/img2img-images /output/extras-images/ /output/grids/ /output/txt2img-grids/ /output/img2img-grids/

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=2215a3b40325ac53d65c22e181eb59ef22ff0586
25+
ARG BRANCH=dev SHA=fd51bab1ec03543eb57faa954caab879ef2bafe7
2626
RUN <<EOF
2727
cd stable-diffusion
2828
git fetch

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=main SHA=79e79b78aaeedb49afcc795e0e00eebfdbedee96
27+
ARG BRANCH=development SHA=fe2a2cfc8b6156805c420c026c5ef8bbb256899e
2828
RUN <<EOF
2929
cd stable-diffusion
3030
git fetch

0 commit comments

Comments
 (0)