aboutsummaryrefslogtreecommitdiff
path: root/modules/ui.py
diff options
context:
space:
mode:
authorBuckzor <bucklogos@yahoo.co.uk>2022-10-13 17:07:06 +0100
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-14 16:47:16 +0300
commitb2261b53ae4ad01b3713bc73ff62ab7b6f479e26 (patch)
tree30ffbffa304e956cbdfa9af31f9d373904fe58af /modules/ui.py
parent9e5ca5077f43bb3ec1a0ec41b47964cb38d544a6 (diff)
Added first_pass_width and height as adjustable inputs to "High Res Fix"
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 220fb80b..544419b2 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -540,6 +540,8 @@ def create_ui(wrap_gradio_gpu_call):
enable_hr = gr.Checkbox(label='Highres. fix', value=False)
with gr.Row(visible=False) as hr_options:
+ first_pass_width = gr.Slider(minimum=64, maximum=1024, step=64, label="First pass width", value=512)
+ first_pass_height = gr.Slider(minimum=64, maximum=1024, step=64, label="First pass height", value=512)
scale_latent = gr.Checkbox(label='Scale latent', value=False)
denoising_strength = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, label='Denoising strength', value=0.7)
@@ -604,6 +606,8 @@ def create_ui(wrap_gradio_gpu_call):
enable_hr,
scale_latent,
denoising_strength,
+ first_pass_width,
+ first_pass_height,
] + custom_inputs,
outputs=[
txt2img_gallery,
@@ -668,6 +672,8 @@ def create_ui(wrap_gradio_gpu_call):
(denoising_strength, "Denoising strength"),
(enable_hr, lambda d: "Denoising strength" in d),
(hr_options, lambda d: gr.Row.update(visible="Denoising strength" in d)),
+ (first_pass_width, "First pass width"),
+ (first_pass_height, "First pass height"),
]
modules.generation_parameters_copypaste.connect_paste(paste, txt2img_paste_fields, txt2img_prompt)
token_button.click(fn=update_token_counter, inputs=[txt2img_prompt, steps], outputs=[token_counter])