diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-21 14:11:42 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-21 14:11:42 +0000 |
commit | 704036ff07b71bf86cadcbbff2bcfeebdd1ed3a6 (patch) | |
tree | 4b1075572683b8b51c118a1b5ce5f1d60a72638f /modules/ui.py | |
parent | 02e4d4694dd9254a6ca9f05c2eb7b01ea508abc7 (diff) | |
download | stable-diffusion-webui-gfx803-704036ff07b71bf86cadcbbff2bcfeebdd1ed3a6.tar.gz stable-diffusion-webui-gfx803-704036ff07b71bf86cadcbbff2bcfeebdd1ed3a6.tar.bz2 stable-diffusion-webui-gfx803-704036ff07b71bf86cadcbbff2bcfeebdd1ed3a6.zip |
make aspect ratio overlay work regardless of selected localization
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 0d020de6..85f95792 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -879,8 +879,8 @@ def create_ui(wrap_gradio_gpu_call): sampler_index = gr.Radio(label='Sampling method', choices=[x.name for x in samplers_for_img2img], value=samplers_for_img2img[0].name, type="index")
with gr.Group():
- width = gr.Slider(minimum=64, maximum=2048, step=64, label="Width", value=512)
- height = gr.Slider(minimum=64, maximum=2048, step=64, label="Height", value=512)
+ width = gr.Slider(minimum=64, maximum=2048, step=64, label="Width", value=512, elem_id="img2img_width")
+ height = gr.Slider(minimum=64, maximum=2048, step=64, label="Height", value=512, elem_id="img2img_height")
with gr.Row():
restore_faces = gr.Checkbox(label='Restore faces', value=False, visible=len(shared.face_restorers) > 1)
|