mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-14 23:02:00 +03:00
fix: disable live prompt parsing, fix #676
This commit is contained in:
parent
7623a57347
commit
e6a9e5d968
@ -139,14 +139,16 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x, imgproc=lambda
|
||||
# txt2img_width.change(fn=uifn.update_dimensions_info, inputs=[txt2img_width, txt2img_height], outputs=txt2img_dimensions_info_text_box)
|
||||
# txt2img_height.change(fn=uifn.update_dimensions_info, inputs=[txt2img_width, txt2img_height], outputs=txt2img_dimensions_info_text_box)
|
||||
|
||||
live_prompt_params = [txt2img_prompt, txt2img_width, txt2img_height, txt2img_steps, txt2img_seed,
|
||||
txt2img_batch_count, txt2img_cfg]
|
||||
txt2img_prompt.change(
|
||||
fn=None,
|
||||
inputs=live_prompt_params,
|
||||
outputs=live_prompt_params,
|
||||
_js=js_parse_prompt
|
||||
)
|
||||
# Temporarily disable prompt parsing until memory issues could be solved
|
||||
# See #676
|
||||
# live_prompt_params = [txt2img_prompt, txt2img_width, txt2img_height, txt2img_steps, txt2img_seed,
|
||||
# txt2img_batch_count, txt2img_cfg]
|
||||
# txt2img_prompt.change(
|
||||
# fn=None,
|
||||
# inputs=live_prompt_params,
|
||||
# outputs=live_prompt_params,
|
||||
# _js=js_parse_prompt
|
||||
# )
|
||||
|
||||
with gr.TabItem("Image-to-Image Unified", id="img2img_tab"):
|
||||
with gr.Row(elem_id="prompt_row"):
|
||||
|
Loading…
Reference in New Issue
Block a user