diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-14 20:19:05 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-14 20:19:05 +0000 |
commit | 368f4cc4c73509c1968cd9defe068d8bf4ff7c4f (patch) | |
tree | 235d127281d116eed415b65444aa7e5d89f69c8f /modules/ui.py | |
parent | cd58e44051f658f2efb544203a92837f43786372 (diff) | |
download | stable-diffusion-webui-gfx803-368f4cc4c73509c1968cd9defe068d8bf4ff7c4f.tar.gz stable-diffusion-webui-gfx803-368f4cc4c73509c1968cd9defe068d8bf4ff7c4f.tar.bz2 stable-diffusion-webui-gfx803-368f4cc4c73509c1968cd9defe068d8bf4ff7c4f.zip |
set firstpass w/h to 0 by default and rever to old behavior when any are 0
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui.py b/modules/ui.py index 6d193955..a1d18be9 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -567,8 +567,8 @@ def create_ui(wrap_gradio_gpu_call): enable_hr = gr.Checkbox(label='Highres. fix', value=False)
with gr.Row(visible=False) as hr_options:
- firstphase_width = gr.Slider(minimum=64, maximum=1024, step=64, label="First pass width", value=512)
- firstphase_height = gr.Slider(minimum=64, maximum=1024, step=64, label="First pass height", value=512)
+ firstphase_width = gr.Slider(minimum=0, maximum=1024, step=64, label="First pass width", value=0)
+ firstphase_height = gr.Slider(minimum=0, maximum=1024, step=64, label="First pass height", value=0)
denoising_strength = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, label='Denoising strength', value=0.7)
with gr.Row(equal_height=True):
|