refactor: use central flag for LoRA count

This commit is contained in:
Manuel Schmid
2024-01-29 14:26:56 +01:00
parent 13d0341a02
commit c3ab9f1f30
6 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import modules.sdxl_styles
from modules.model_loader import load_file_from_url
from modules.util import get_files_from_folder
from modules.flags import Performance, MetadataScheme
from modules.flags import Performance, MetadataScheme, lora_count
config_path = os.path.abspath("./config.txt")
config_example_path = os.path.abspath("config_modification_tutorial.txt")
@@ -333,7 +333,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[:5] + [['None', 1.0] for _ in range(5 - len(default_loras))]
config_dict["default_loras"] = default_loras = default_loras[:lora_count] + [['None', 1.0] for _ in range(lora_count - len(default_loras))]
possible_preset_keys = [
"default_model",