aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorrewbs <robin@soal.org>2022-09-08 12:02:06 +0000
committerrewbs <robin@soal.org>2022-09-08 12:02:06 +0000
commited01f69542628fe19d472a86a2992f60c3c9232e (patch)
tree5fe6dcac58654537390e89b9b7b9c0f195da1455 /modules/ui.py
parent61785cef656335cce3ab50b420301d2821f7c5e1 (diff)
downloadstable-diffusion-webui-gfx803-ed01f69542628fe19d472a86a2992f60c3c9232e.tar.gz
stable-diffusion-webui-gfx803-ed01f69542628fe19d472a86a2992f60c3c9232e.tar.bz2
stable-diffusion-webui-gfx803-ed01f69542628fe19d472a86a2992f60c3c9232e.zip
Turn the loopback denoise strength change factor into a parameter rather than hardcoding to 0.95. Set the default to 1.
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py
index b1a8c776..8767d439 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -349,7 +349,8 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
with gr.Group():
cfg_scale = gr.Slider(minimum=1.0, maximum=15.0, step=0.5, label='CFG Scale', value=7.0)
- denoising_strength = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, label='Denoising Strength', value=0.75)
+ denoising_strength = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, label='Denoising strength', value=0.75)
+ denoising_strength_change_factor = gr.Slider(minimum=0.9, maximum=1.1, step=0.01, label='Denoising strength change factor', value=1, visible=False)
with gr.Group():
height = gr.Slider(minimum=64, maximum=2048, step=64, label="Height", value=512)
@@ -396,6 +397,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
sd_upscale_overlap: gr_show(is_upscale),
inpaint_full_res: gr_show(is_inpaint),
inpainting_mask_invert: gr_show(is_inpaint),
+ denoising_strength_change_factor: gr_show(is_loopback),
}
switch_mode.change(
@@ -412,6 +414,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
sd_upscale_overlap,
inpaint_full_res,
inpainting_mask_invert,
+ denoising_strength_change_factor,
]
)
@@ -433,6 +436,7 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
batch_size,
cfg_scale,
denoising_strength,
+ denoising_strength_change_factor,
seed,
height,
width,