mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
make disable_intermediate_results not interactive when selecting Extreme Performance
correctly reflects current behaviour to not clog gradio
This commit is contained in:
@@ -474,12 +474,12 @@ with shared.gradio_root:
|
|||||||
play_notification.change(fn=play_notification_checked, inputs=[play_notification, notification], outputs=[notification_input], queue=False)
|
play_notification.change(fn=play_notification_checked, inputs=[play_notification, notification], outputs=[notification_input], queue=False)
|
||||||
notification_input.change(fn=notification_input_changed, inputs=[notification_input, notification], outputs=[notification], queue=False)
|
notification_input.change(fn=notification_input_changed, inputs=[notification_input, notification], outputs=[notification], queue=False)
|
||||||
|
|
||||||
performance_selection.change(lambda x: [gr.update(interactive=x != 'Extreme Speed')] * 11,
|
performance_selection.change(lambda x: [gr.update(interactive=x != 'Extreme Speed')] * 12,
|
||||||
inputs=performance_selection,
|
inputs=performance_selection,
|
||||||
outputs=[
|
outputs=[
|
||||||
guidance_scale, sharpness, adm_scaler_end, adm_scaler_positive,
|
guidance_scale, sharpness, adm_scaler_end, adm_scaler_positive,
|
||||||
adm_scaler_negative, refiner_switch, refiner_model, sampler_name,
|
adm_scaler_negative, refiner_switch, refiner_model, sampler_name,
|
||||||
scheduler_name, adaptive_cfg, refiner_swap_method
|
scheduler_name, adaptive_cfg, refiner_swap_method, disable_intermediate_results
|
||||||
], queue=False, show_progress=False)
|
], queue=False, show_progress=False)
|
||||||
|
|
||||||
advanced_checkbox.change(lambda x: gr.update(visible=x), advanced_checkbox, advanced_column,
|
advanced_checkbox.change(lambda x: gr.update(visible=x), advanced_checkbox, advanced_column,
|
||||||
|
|||||||
Reference in New Issue
Block a user