From 2bd4db94d5f36da78b71de0c1bfc7804d990adf2 Mon Sep 17 00:00:00 2001 From: Bingsu Date: Sun, 2 Jul 2023 13:11:03 +0900 Subject: [PATCH] fix: prevent chaning values during generation --- adetailer/ui.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/adetailer/ui.py b/adetailer/ui.py index 5547578..865ecd1 100644 --- a/adetailer/ui.py +++ b/adetailer/ui.py @@ -175,11 +175,6 @@ def one_ui_group( with gr.Group(): controlnet(w, n, is_img2img) - for attr in ALL_ARGS.attrs: - widget = getattr(w, attr) - on_change = partial(on_widget_change, attr=attr) - widget.change(fn=on_change, inputs=[state, widget], outputs=state, queue=False) - all_inputs = [state, *w.tolist()] target_button = i2i_button if is_img2img else t2i_button target_button.click(