Skip to content

Commit 64c29a8

Browse files
authored
feat: rework intermediate image display for restricted performances (#3050)
disable intermediate results for all performacnes with restricted features 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
1 parent 4e658bb commit 64c29a8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

webui.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,8 @@ def update_history_link():
460460
disable_preview = gr.Checkbox(label='Disable Preview', value=modules.config.default_black_out_nsfw,
461461
interactive=not modules.config.default_black_out_nsfw,
462462
info='Disable preview during generation.')
463-
disable_intermediate_results = gr.Checkbox(label='Disable Intermediate Results',
463+
disable_intermediate_results = gr.Checkbox(label='Disable Intermediate Results',
464464
value=flags.Performance.has_restricted_features(modules.config.default_performance),
465-
interactive=not flags.Performance.has_restricted_features(modules.config.default_performance),
466465
info='Disable intermediate results during generation, only show final gallery.')
467466
disable_seed_increment = gr.Checkbox(label='Disable seed increment',
468467
info='Disable automatic seed increment when image number is > 1.',
@@ -616,7 +615,7 @@ def preset_selection_change(preset, is_generating):
616615

617616
performance_selection.change(lambda x: [gr.update(interactive=not flags.Performance.has_restricted_features(x))] * 11 +
618617
[gr.update(visible=not flags.Performance.has_restricted_features(x))] * 1 +
619-
[gr.update(interactive=not flags.Performance.has_restricted_features(x), value=flags.Performance.has_restricted_features(x))] * 1,
618+
[gr.update(value=flags.Performance.has_restricted_features(x))] * 1,
620619
inputs=performance_selection,
621620
outputs=[
622621
guidance_scale, sharpness, adm_scaler_end, adm_scaler_positive,

0 commit comments

Comments
 (0)