mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 02:45:05 +08:00
set script_loading_max_thread 1 by default. add warning message
This commit is contained in:
parent
9f2bd2ee6c
commit
cc20bd2b3f
@ -528,7 +528,7 @@ def load_scripts():
|
||||
|
||||
# here the scripts_list is already ordered
|
||||
# processing_script is not considered though
|
||||
max_workers = shared.opts.data.get("script_loading_max_thread", 2)
|
||||
max_workers = shared.opts.data.get("script_loading_max_thread", 1)
|
||||
if max_workers == 1:
|
||||
for scriptfile in scripts_list:
|
||||
load_module(scriptfile)
|
||||
|
@ -128,7 +128,7 @@ options_templates.update(options_section(('system', "System", "system"), {
|
||||
"disable_mmap_load_safetensors": OptionInfo(False, "Disable memmapping for loading .safetensors files.").info("fixes very slow loading speed in some cases"),
|
||||
"hide_ldm_prints": OptionInfo(True, "Prevent Stability-AI's ldm/sgm modules from printing noise to console."),
|
||||
"dump_stacks_on_signal": OptionInfo(False, "Print stack traces before exiting the program with ctrl+c."),
|
||||
"script_loading_max_thread": OptionInfo(2, "Maximum Thread number for for asynchronously loading script extensions", gr.Slider, {"minimum": 1, "maximum": 8, "step": 1}).info("1 = normal execution"),
|
||||
"script_loading_max_thread": OptionInfo(1, "Maximum Thread number for for asynchronously loading script extensions", gr.Slider, {"minimum": 1, "maximum": 8, "step": 1}).info("1 = normal execution. ⚠ Enabling this feature may cause unintended issues with some extensions."),
|
||||
}))
|
||||
|
||||
options_templates.update(options_section(('profiler', "Profiler", "system"), {
|
||||
|
Loading…
Reference in New Issue
Block a user