mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-05 03:32:37 +00:00
Added first_pass_width and height as adjustable inputs to "High Res Fix"
This commit is contained in:
@@ -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])
|
||||
|
Reference in New Issue
Block a user