diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-04-29 15:20:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-29 15:20:11 +0000 |
commit | eabecc21ecd240b63cd4b3996286b74e794ddcea (patch) | |
tree | 7fa36d05715ad659d0a93639bb300696b34ac775 | |
parent | d667fc435f6210575ba50a6f3a05d3853b233caa (diff) | |
download | stable-diffusion-webui-gfx803-eabecc21ecd240b63cd4b3996286b74e794ddcea.tar.gz stable-diffusion-webui-gfx803-eabecc21ecd240b63cd4b3996286b74e794ddcea.tar.bz2 stable-diffusion-webui-gfx803-eabecc21ecd240b63cd4b3996286b74e794ddcea.zip |
Update modules/ui.py
Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>
-rw-r--r-- | modules/ui.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/ui.py b/modules/ui.py index 653eb665..43e36a0a 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -766,8 +766,12 @@ def create_ui(): with gr.Tabs():
with gr.Tab(label="Resize to") as tab_scale_to:
- 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")
+ with FormRow():
+ with gr.Column(elem_id="img2img_column_size", scale=4):
+ 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")
+ with gr.Column(elem_id="img2img_dimensions_row", scale=1, elem_classes="dimensions-tools"):
+ res_switch_btn = ToolButton(value=switch_values_symbol, elem_id="img2img_res_switch_btn")
with gr.Tab(label="Resize by") as tab_scale_by:
scale_by = gr.Slider(minimum=0.05, maximum=4.0, step=0.05, label="Scale", value=1.0, elem_id="img2img_scale")
@@ -787,9 +791,6 @@ def create_ui(): tab_scale_to.select(fn=lambda: 0, inputs=[], outputs=[selected_scale_tab])
tab_scale_by.select(fn=lambda: 1, inputs=[], outputs=[selected_scale_tab])
- with gr.Column(elem_id="img2img_dimensions_row", scale=1, elem_classes="dimensions-tools"):
- res_switch_btn = ToolButton(value=switch_values_symbol, elem_id="img2img_res_switch_btn")
-
if opts.dimensions_and_batch_together:
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")
|