Merge pull request #15 from blckbx/load-upscale-strength-from-config
[Feature]: Load debug settings `upscale strength` from config file
This commit is contained in:
commit
a01afaf1b3
|
|
@ -375,6 +375,11 @@ default_overwrite_switch = get_config_item_or_set_default(
|
|||
default_value=-1,
|
||||
validator=lambda x: isinstance(x, int)
|
||||
)
|
||||
default_overwrite_upscale = get_config_item_or_set_default(
|
||||
key='default_overwrite_upscale',
|
||||
default_value=-1,
|
||||
validator=lambda x: isinstance(x, numbers.Number)
|
||||
)
|
||||
example_inpaint_prompts = get_config_item_or_set_default(
|
||||
key='example_inpaint_prompts',
|
||||
default_value=[
|
||||
|
|
|
|||
3
webui.py
3
webui.py
|
|
@ -481,7 +481,8 @@ with shared.gradio_root:
|
|||
minimum=-1, maximum=1.0, step=0.001, value=-1,
|
||||
info='Set as negative number to disable. For developer debugging.')
|
||||
overwrite_upscale_strength = gr.Slider(label='Forced Overwrite of Denoising Strength of "Upscale"',
|
||||
minimum=-1, maximum=1.0, step=0.001, value=-1,
|
||||
minimum=-1, maximum=1.0, step=0.001,
|
||||
value=modules.config.default_overwrite_upscale,
|
||||
info='Set as negative number to disable. For developer debugging.')
|
||||
|
||||
disable_preview = gr.Checkbox(label='Disable Preview', value=modules.config.default_black_out_nsfw,
|
||||
|
|
|
|||
Loading…
Reference in New Issue