diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-02-19 07:55:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-19 07:55:39 +0000 |
commit | fd4ac5187a1ae42be3f131770ea21e2158f75dcd (patch) | |
tree | a88d9720514409a59e3f51a28189a38279161dba /modules/ui.py | |
parent | b20f28eea9a2f71bb001064f51f1982382bdf568 (diff) | |
download | stable-diffusion-webui-gfx803-fd4ac5187a1ae42be3f131770ea21e2158f75dcd.tar.gz stable-diffusion-webui-gfx803-fd4ac5187a1ae42be3f131770ea21e2158f75dcd.tar.bz2 stable-diffusion-webui-gfx803-fd4ac5187a1ae42be3f131770ea21e2158f75dcd.zip |
Revert "Aspect ratio sliders"
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/modules/ui.py b/modules/ui.py index 2fc1fee5..2fdbda42 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -424,10 +424,6 @@ def ordered_ui_categories(): yield category
-def aspect_ratio_list():
- return [ratio.strip() for ratio in shared.opts.aspect_ratios.split(",")]
-
-
def get_value_for_setting(key):
value = getattr(opts, key)
@@ -483,9 +479,7 @@ 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")
- with gr.Column(elem_id="txt2img_size_toolbox", scale=0):
- aspect_ratio_dropdown = gr.Dropdown(value="🔓", choices=aspect_ratio_list(), interactive=True, type="value", elem_id="txt2img_ratio", show_label=False, label="Aspect Ratio")
- res_switch_btn = ToolButton(value=switch_values_symbol, elem_id="txt2img_res_switch_btn")
+ res_switch_btn = ToolButton(value=switch_values_symbol, elem_id="txt2img_res_switch_btn")
if opts.dimensions_and_batch_together:
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")
@@ -763,9 +757,7 @@ 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")
- with gr.Column(elem_id="img2img_size_toolbox", scale=0):
- aspect_ratio_dropdown = gr.Dropdown(value="🔓", choices=aspect_ratio_list(), interactive=True, type="value", elem_id="img2img_ratio", show_label=False, label="Aspect Ratio")
- res_switch_btn = ToolButton(value=switch_values_symbol, elem_id="img2img_res_switch_btn")
+ 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")
|