diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-12 21:48:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-12 21:48:36 +0000 |
commit | fa8be8acd62894bfc96da985326fda3208266468 (patch) | |
tree | 3e4d6b82fd67d0c88a696c7030b99da040590d1f | |
parent | db8f8dd9720dbf2b84053ea686b6f540721dee27 (diff) | |
parent | a97e2a562b43d03acc6fb107d99061df3809daee (diff) | |
download | stable-diffusion-webui-gfx803-fa8be8acd62894bfc96da985326fda3208266468.tar.gz stable-diffusion-webui-gfx803-fa8be8acd62894bfc96da985326fda3208266468.tar.bz2 stable-diffusion-webui-gfx803-fa8be8acd62894bfc96da985326fda3208266468.zip |
Merge pull request #356 from nnuudev/master
Swap width and height sliders in the UI
-rw-r--r-- | modules/ui.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ui.py b/modules/ui.py index 535afaeb..d1aa7793 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()
|