Merge branch 'main' of https://github.com/lllyasviel/Fooocus into lora-reference-parsing

This commit is contained in:
cantor-set
2024-03-21 10:31:20 -04:00
34 changed files with 711 additions and 355 deletions
+2
View File
@@ -355,6 +355,8 @@ def makedirs_with_log(path):
except OSError as error:
print(f'Directory {path} could not be created, reason: {error}')
def get_enabled_loras(loras: list) -> list:
return [[lora[1], lora[2]] for lora in loras if lora[0]]
def parse_lora_references_from_prompt(prompt: str, loras: List[Tuple[AnyStr, float]], loras_limit: int = 5):