Skip to content

Commit e9bc5e5

Browse files
authored
Merge pull request #2576 from mashb1t/hotfix/default-max-lora-number-adjustments
fix: add enabled value to LoRA when setting default_max_lora_number
2 parents 6b41af7 + 856eb75 commit e9bc5e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def init_temp_path(path: str | None, default_path: str) -> str:
476476

477477
example_inpaint_prompts = [[x] for x in example_inpaint_prompts]
478478

479-
config_dict["default_loras"] = default_loras = default_loras[:default_max_lora_number] + [['None', 1.0] for _ in range(default_max_lora_number - len(default_loras))]
479+
config_dict["default_loras"] = default_loras = default_loras[:default_max_lora_number] + [[True, 'None', 1.0] for _ in range(default_max_lora_number - len(default_loras))]
480480

481481
# mapping config to meta parameter
482482
possible_preset_keys = {

0 commit comments

Comments
 (0)