diff --git a/modules/scripts.py b/modules/scripts.py index 191eb81f2..e399a5c4c 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -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) diff --git a/modules/shared_options.py b/modules/shared_options.py index 63dc01ca6..c8e809068 100644 --- a/modules/shared_options.py +++ b/modules/shared_options.py @@ -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"), {