mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
feat: add config for default_developer_debug_mode_checkbox
This commit is contained in:
@@ -439,6 +439,12 @@ default_invert_mask_checkbox = get_config_item_or_set_default(
|
|||||||
validator=lambda x: isinstance(x, bool),
|
validator=lambda x: isinstance(x, bool),
|
||||||
expected_type=bool
|
expected_type=bool
|
||||||
)
|
)
|
||||||
|
default_developer_debug_mode_checkbox = get_config_item_or_set_default(
|
||||||
|
key='default_developer_debug_mode_checkbox',
|
||||||
|
default_value=False,
|
||||||
|
validator=lambda x: isinstance(x, bool),
|
||||||
|
expected_type=bool
|
||||||
|
)
|
||||||
default_max_image_number = get_config_item_or_set_default(
|
default_max_image_number = get_config_item_or_set_default(
|
||||||
key='default_max_image_number',
|
key='default_max_image_number',
|
||||||
default_value=32,
|
default_value=32,
|
||||||
|
|||||||
@@ -693,9 +693,9 @@ with shared.gradio_root:
|
|||||||
value=modules.config.default_sample_sharpness,
|
value=modules.config.default_sample_sharpness,
|
||||||
info='Higher value means image and texture are sharper.')
|
info='Higher value means image and texture are sharper.')
|
||||||
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/117" target="_blank">\U0001F4D4 Documentation</a>')
|
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/117" target="_blank">\U0001F4D4 Documentation</a>')
|
||||||
dev_mode = gr.Checkbox(label='Developer Debug Mode', value=False, container=False)
|
dev_mode = gr.Checkbox(label='Developer Debug Mode', value=modules.config.default_developer_debug_mode_checkbox, container=False)
|
||||||
|
|
||||||
with gr.Column(visible=False) as dev_tools:
|
with gr.Column(visible=modules.config.default_developer_debug_mode_checkbox) as dev_tools:
|
||||||
with gr.Tab(label='Debug Tools'):
|
with gr.Tab(label='Debug Tools'):
|
||||||
adm_scaler_positive = gr.Slider(label='Positive ADM Guidance Scaler', minimum=0.1, maximum=3.0,
|
adm_scaler_positive = gr.Slider(label='Positive ADM Guidance Scaler', minimum=0.1, maximum=3.0,
|
||||||
step=0.001, value=1.5, info='The scaler multiplied to positive ADM (use 1.0 to disable). ')
|
step=0.001, value=1.5, info='The scaler multiplied to positive ADM (use 1.0 to disable). ')
|
||||||
|
|||||||
Reference in New Issue
Block a user