mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Update invokeai/app/invocations/model.py
Co-authored-by: Ryan Dick <ryanjdick3@gmail.com>
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