|
|
|
@ -540,6 +540,8 @@ def create_ui(wrap_gradio_gpu_call):
|
|
|
|
enable_hr = gr.Checkbox(label='Highres. fix', value=False)
|
|
|
|
enable_hr = gr.Checkbox(label='Highres. fix', value=False)
|
|
|
|
|
|
|
|
|
|
|
|
with gr.Row(visible=False) as hr_options:
|
|
|
|
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)
|
|
|
|
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)
|
|
|
|
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,
|
|
|
|
enable_hr,
|
|
|
|
scale_latent,
|
|
|
|
scale_latent,
|
|
|
|
denoising_strength,
|
|
|
|
denoising_strength,
|
|
|
|
|
|
|
|
first_pass_width,
|
|
|
|
|
|
|
|
first_pass_height,
|
|
|
|
] + custom_inputs,
|
|
|
|
] + custom_inputs,
|
|
|
|
outputs=[
|
|
|
|
outputs=[
|
|
|
|
txt2img_gallery,
|
|
|
|
txt2img_gallery,
|
|
|
|
@ -668,6 +672,8 @@ def create_ui(wrap_gradio_gpu_call):
|
|
|
|
(denoising_strength, "Denoising strength"),
|
|
|
|
(denoising_strength, "Denoising strength"),
|
|
|
|
(enable_hr, lambda d: "Denoising strength" in d),
|
|
|
|
(enable_hr, lambda d: "Denoising strength" in d),
|
|
|
|
(hr_options, lambda d: gr.Row.update(visible="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)
|
|
|
|
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])
|
|
|
|
token_button.click(fn=update_token_counter, inputs=[txt2img_prompt, steps], outputs=[token_counter])
|
|
|
|
|