aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-02-01 13:29:58 +0000
committerGitHub <noreply@github.com>2023-02-01 13:29:58 +0000
commit07edf57409bbacd6c8efa99c2c63b6e0bde78b15 (patch)
tree46f9658330ca4106313fcc5a8a2ee1179544ba9e
parentfa4fe45403662a35f4b691ed60464119726d7a1f (diff)
parent920fe8057cb325e9835f70c0389499c51cbdd3b5 (diff)
downloadstable-diffusion-webui-gfx803-07edf57409bbacd6c8efa99c2c63b6e0bde78b15.tar.gz
stable-diffusion-webui-gfx803-07edf57409bbacd6c8efa99c2c63b6e0bde78b15.tar.bz2
stable-diffusion-webui-gfx803-07edf57409bbacd6c8efa99c2c63b6e0bde78b15.zip
Merge pull request #7357 from EllangoK/btn-fix
Fixes switch height/width btn unbound error
-rw-r--r--modules/ui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui.py b/modules/ui.py
index f910c582..5e34fb07 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -479,8 +479,8 @@ def create_ui():
width = gr.Slider(minimum=64, maximum=2048, step=8, label="Width", value=512, elem_id="txt2img_width")
height = gr.Slider(minimum=64, maximum=2048, step=8, label="Height", value=512, elem_id="txt2img_height")
+ res_switch_btn = ToolButton(value=switch_values_symbol, elem_id="txt2img_res_switch_btn")
if opts.dimensions_and_batch_together:
- res_switch_btn = ToolButton(value=switch_values_symbol, elem_id="txt2img_res_switch_btn")
with gr.Column(elem_id="txt2img_column_batch"):
batch_count = gr.Slider(minimum=1, step=1, label='Batch count', value=1, elem_id="txt2img_batch_count")
batch_size = gr.Slider(minimum=1, maximum=8, step=1, label='Batch size', value=1, elem_id="txt2img_batch_size")
@@ -757,8 +757,8 @@ def create_ui():
width = gr.Slider(minimum=64, maximum=2048, step=8, label="Width", value=512, elem_id="img2img_width")
height = gr.Slider(minimum=64, maximum=2048, step=8, label="Height", value=512, elem_id="img2img_height")
+ res_switch_btn = ToolButton(value=switch_values_symbol, elem_id="img2img_res_switch_btn")
if opts.dimensions_and_batch_together:
- res_switch_btn = ToolButton(value=switch_values_symbol, elem_id="img2img_res_switch_btn")
with gr.Column(elem_id="img2img_column_batch"):
batch_count = gr.Slider(minimum=1, step=1, label='Batch count', value=1, elem_id="img2img_batch_count")
batch_size = gr.Slider(minimum=1, maximum=8, step=1, label='Batch size', value=1, elem_id="img2img_batch_size")