diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-05-01 14:39:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 14:39:46 +0300 |
commit | 50f63e22472dd532ddd76adb28f29aef46a71a86 (patch) | |
tree | 6f9c37f302e6bcaf1ce3e1f1913f2db54f3b184e /modules/ui.py | |
parent | c714300265919e325ae1340459c4866541940687 (diff) | |
parent | b463b8a12672e010a8c86ea1c73b2c14ae5555d5 (diff) |
Merge branch 'dev' into js-misc-fixes
Diffstat (limited to 'modules/ui.py')
-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])
|