Merge pull request #2576 from mashb1t/hotfix/default-max-lora-number-adjustments

fix: add enabled value to LoRA when setting default_max_lora_number
This commit is contained in:
Manuel Schmid 2024-03-19 23:10:03 +01:00 committed by GitHub
commit e9bc5e50c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -476,7 +476,7 @@ metadata_created_by = get_config_item_or_set_default(
example_inpaint_prompts = [[x] for x in example_inpaint_prompts]
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))]
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))]
# mapping config to meta parameter
possible_preset_keys = {