fix: add enabled value to LoRA when setting default_max_lora_number

This commit is contained in:
Manuel Schmid 2024-03-19 23:08:38 +01:00
parent 6b41af7140
commit 856eb750ab
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B

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 = {