mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
probe LoRAs that do not have the text encoder
This commit is contained in:
parent
d09dfc3e9b
commit
f3d3316558
@ -345,6 +345,8 @@ class LoRACheckpointProbe(CheckpointProbeBase):
|
||||
return BaseModelType.StableDiffusion1
|
||||
elif lora_token_vector_length == 1024:
|
||||
return BaseModelType.StableDiffusion2
|
||||
elif lora_token_vector_length is None: # variant w/o the text encoder!
|
||||
return BaseModelType.StableDiffusion1
|
||||
else:
|
||||
raise InvalidModelException(f"Unknown LoRA type")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user