mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Merge branch 'lstein/model-manager-refactor' of github.com:invoke-ai/InvokeAI into lstein/model-manager-refactor
This commit is contained in:
@ -174,7 +174,7 @@ class LoraLoaderInvocation(BaseInvocation):
|
||||
key = self.lora.key
|
||||
|
||||
if not context.services.model_record_store.model_exists(key):
|
||||
raise Exception(f"Unkown lora: {key}!")
|
||||
raise Exception(f"Unknown lora: {key}!")
|
||||
|
||||
if self.unet is not None and any(lora.key == key for lora in self.unet.loras):
|
||||
raise Exception(f'Lora "{key}" already applied to unet')
|
||||
|
Reference in New Issue
Block a user