From a97e2a562b43d03acc6fb107d99061df3809daee Mon Sep 17 00:00:00 2001 From: nnuudev <84907027+nnuudev@users.noreply.github.com> Date: Mon, 12 Sep 2022 21:41:59 +0200 Subject: [PATCH] Swap width and height sliders in the UI --- modules/ui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui.py b/modules/ui.py index 535afaeb3..d1aa77932 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -202,8 +202,8 @@ def create_seed_inputs(): with gr.Row(): subseed_strength = gr.Slider(label='Variation strength', value=0.0, minimum=0, maximum=1, step=0.01, visible=False) - seed_resize_from_h = gr.Slider(minimum=0, maximum=2048, step=64, label="Resize seed from height", value=0, visible=False) seed_resize_from_w = gr.Slider(minimum=0, maximum=2048, step=64, label="Resize seed from width", value=0, visible=False) + seed_resize_from_h = gr.Slider(minimum=0, maximum=2048, step=64, label="Resize seed from height", value=0, visible=False) def change_visiblity(show): @@ -273,8 +273,8 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): cfg_scale = gr.Slider(minimum=1.0, maximum=30.0, step=0.5, label='CFG Scale', value=7.0) with gr.Group(): - 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) + height = gr.Slider(minimum=64, maximum=2048, step=64, label="Height", value=512) seed, subseed, subseed_strength, seed_resize_from_h, seed_resize_from_w = create_seed_inputs() @@ -418,8 +418,8 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): 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) 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) seed, subseed, subseed_strength, seed_resize_from_h, seed_resize_from_w = create_seed_inputs()