diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-01 10:47:46 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-01 10:47:46 +0000 |
commit | f15b7e52e33de1f0e2fcd99c9d4204ebb0fef536 (patch) | |
tree | d63eebe73e3145ded3d23eb6ac2fea03c4d90f1f /modules | |
parent | 94754c60c5e4b63e0a656efcdd886ee5c34c24f2 (diff) | |
download | stable-diffusion-webui-gfx803-f15b7e52e33de1f0e2fcd99c9d4204ebb0fef536.tar.gz stable-diffusion-webui-gfx803-f15b7e52e33de1f0e2fcd99c9d4204ebb0fef536.tar.bz2 stable-diffusion-webui-gfx803-f15b7e52e33de1f0e2fcd99c9d4204ebb0fef536.zip |
Add a comment and partial fix for the issue when the inpaint UI is unresponsive after using it.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ui.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py index 9ff4bcd9..7b45f131 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -810,7 +810,10 @@ def create_ui(): scale_by.release(**on_change_args)
button_update_resize_to.click(**on_change_args)
- for component in img2img_image_inputs:
+ # the code below is meant to update the resolution label after the image in the image selection UI has changed.
+ # as it is now the event keeps firing continuously for inpaint edits, which ruins the page with constant requests.
+ # I assume this must be a gradio bug and for now we'll just do it for non-inpaint inputs.
+ for component in [init_img, sketch]:
component.change(fn=lambda: None, _js="updateImg2imgResizeToTextAfterChangingImage", inputs=[], outputs=[], show_progress=False)
tab_scale_to.select(fn=lambda: 0, inputs=[], outputs=[selected_scale_tab])
|