From 83ef32a88b6cc29445b2ba5015425827181acb3f Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Thu, 30 May 2024 14:39:43 +0200 Subject: [PATCH] feat: make disable_intermediate_results interactive again even if performance has restricted features users who want to disable this option should be able to do so, even if performance will be impacted --- webui.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webui.py b/webui.py index 6f08757d..7fc6f2cf 100644 --- a/webui.py +++ b/webui.py @@ -462,7 +462,6 @@ with shared.gradio_root: info='Disable preview during generation.') disable_intermediate_results = gr.Checkbox(label='Disable Intermediate Results', value=flags.Performance.has_restricted_features(modules.config.default_performance), - interactive=not flags.Performance.has_restricted_features(modules.config.default_performance), info='Disable intermediate results during generation, only show final gallery.') disable_seed_increment = gr.Checkbox(label='Disable seed increment', info='Disable automatic seed increment when image number is > 1.', @@ -616,7 +615,7 @@ with shared.gradio_root: performance_selection.change(lambda x: [gr.update(interactive=not flags.Performance.has_restricted_features(x))] * 11 + [gr.update(visible=not flags.Performance.has_restricted_features(x))] * 1 + - [gr.update(interactive=not flags.Performance.has_restricted_features(x), value=flags.Performance.has_restricted_features(x))] * 1, + [gr.update(value=flags.Performance.has_restricted_features(x))] * 1, inputs=performance_selection, outputs=[ guidance_scale, sharpness, adm_scaler_end, adm_scaler_positive,