Skip to content

Commit 6081a26

Browse files
AbdBarhosheldonhull
authored andcommitted
Updates & Prepare hlky streamlit (AbdBarho#59)
1 parent 4413848 commit 6081a26

File tree

4 files changed

+109
-3
lines changed

4 files changed

+109
-3
lines changed

Diff for: services/AUTOMATIC1111/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ RUN pip install --prefer-binary --no-cache-dir -r ${ROOT}/repositories/CodeForme
4141

4242
# Note: don't update the sha of previous versions because the install will take forever
4343
# instead, update the repo state in a later step
44-
ARG SHA=85b97cc49c4766cb47306e71e552871a0791ea29
44+
ARG SHA=91c56c51c7c83e18adb8fc52a950ec481c93b1de
4545
RUN <<EOF
4646
cd stable-diffusion-webui
4747
git pull --rebase

Diff for: services/hlky/Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN pip install -U --no-cache-dir pyperclip
2626
# Note: don't update the sha of previous versions because the install will take forever
2727
# instead, update the repo state in a later step
2828
ARG BRANCH=master
29-
ARG SHA=e6a9e5d968aad020e54045a0923d8c6aa0b54591
29+
ARG SHA=833a91047df999302f699637768741cecee9c37b
3030
RUN <<EOF
3131
cd stable-diffusion
3232
git fetch
@@ -56,4 +56,6 @@ WORKDIR /stable-diffusion
5656
ENV TRANSFORMERS_CACHE=/cache/transformers TORCH_HOME=/cache/torch CLI_ARGS=""
5757
EXPOSE 7860
5858
# run, -u to not buffer stdout / stderr
59-
CMD /docker/mount.sh && python3 -u scripts/webui.py --outdir /output --ckpt /cache/models/model.ckpt --ldsr-dir /latent-diffusion ${CLI_ARGS}
59+
CMD /docker/mount.sh && \
60+
python3 -u scripts/webui.py --outdir /output --ckpt /cache/models/model.ckpt --ldsr-dir /latent-diffusion --inbrowser ${CLI_ARGS}
61+
#STREAMLIT_SERVER_PORT=7860 python -m streamlit run scripts/webui_streamlit.py

Diff for: services/hlky/mount.sh

+3
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ fi
3333
# force facexlib cache
3434
mkdir -p /cache/weights/ /stable-diffusion/gfpgan/
3535
ln -sf /cache/weights/ /stable-diffusion/gfpgan/
36+
37+
# streamlit config
38+
ln -sf /docker/webui_streamlit.yaml /stable-diffusion/configs/webui/webui_streamlit.yaml

Diff for: services/hlky/webui_streamlit.yaml

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# UI defaults configuration file. It is automatically loaded if located at configs/webui/webui_streamlit.yaml.
2+
general:
3+
gpu: 0
4+
outdir: /outputs
5+
ckpt: "/cache/models/model.ckpt"
6+
fp:
7+
name: "embeddings/alex/embeddings_gs-11000.pt"
8+
GFPGAN_dir: "./src/gfpgan"
9+
RealESRGAN_dir: "./src/realesrgan"
10+
RealESRGAN_model: "RealESRGAN_x4plus"
11+
outdir_txt2img: /outputs/txt2img-samples
12+
outdir_img2img: /outputs/img2img-samples
13+
gfpgan_cpu: False
14+
esrgan_cpu: False
15+
extra_models_cpu: False
16+
extra_models_gpu: False
17+
save_metadata: True
18+
skip_grid: False
19+
skip_save: False
20+
grid_format: "jpg:95"
21+
n_rows: -1
22+
no_verify_input: False
23+
no_half: False
24+
precision: "autocast"
25+
optimized: False
26+
optimized_turbo: False
27+
update_preview: True
28+
update_preview_frequency: 1
29+
30+
txt2img:
31+
prompt:
32+
height: 512
33+
width: 512
34+
cfg_scale: 5.0
35+
seed: ""
36+
batch_count: 1
37+
batch_size: 1
38+
sampling_steps: 50
39+
default_sampler: "k_lms"
40+
separate_prompts: False
41+
normalize_prompt_weights: True
42+
save_individual_images: True
43+
save_grid: True
44+
group_by_prompt: True
45+
save_as_jpg: False
46+
use_GFPGAN: True
47+
use_RealESRGAN: True
48+
RealESRGAN_model: "RealESRGAN_x4plus"
49+
variant_amount: 0.0
50+
variant_seed: ""
51+
52+
img2img:
53+
prompt:
54+
sampling_steps: 50
55+
# Adding an int to toggles enables the corresponding feature.
56+
# 0: Create prompt matrix (separate multiple prompts using |, and get all combinations of them)
57+
# 1: Normalize Prompt Weights (ensure sum of weights add up to 1.0)
58+
# 2: Loopback (use images from previous batch when creating next batch)
59+
# 3: Random loopback seed
60+
# 4: Save individual images
61+
# 5: Save grid
62+
# 6: Sort samples by prompt
63+
# 7: Write sample info files
64+
# 8: jpg samples
65+
# 9: Fix faces using GFPGAN
66+
# 10: Upscale images using Real-ESRGAN
67+
sampler_name: k_lms
68+
denoising_strength: 0.45
69+
# 0: Keep masked area
70+
# 1: Regenerate only masked area
71+
mask_mode: 0
72+
# 0: Just resize
73+
# 1: Crop and resize
74+
# 2: Resize and fill
75+
resize_mode: 0
76+
# Leave blank for random seed:
77+
seed: ""
78+
ddim_eta: 0.0
79+
cfg_scale: 5.0
80+
batch_count: 1
81+
batch_size: 1
82+
height: 512
83+
width: 512
84+
# Textual inversion embeddings file path:
85+
fp: ""
86+
loopback: True
87+
random_seed_loopback: True
88+
separate_prompts: False
89+
normalize_prompt_weights: True
90+
save_individual_images: True
91+
save_grid: True
92+
group_by_prompt: True
93+
save_as_jpg: False
94+
use_GFPGAN: True
95+
use_RealESRGAN: True
96+
RealESRGAN_model: "RealESRGAN_x4plus"
97+
variant_amount: 0.0
98+
variant_seed: ""
99+
100+
gfpgan:
101+
strength: 100

0 commit comments

Comments
 (0)