set script_loading_max_thread 1 by default. add warning message

This commit is contained in:
Won-Kyu Park 2024-10-20 12:41:25 +09:00
parent 9f2bd2ee6c
commit cc20bd2b3f
No known key found for this signature in database
GPG Key ID: 53AA79C8C9535D15
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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"), {