probe LoRAs that do not have the text encoder

This commit is contained in:
Lincoln Stein 2023-08-06 16:00:53 -04:00
parent d09dfc3e9b
commit f3d3316558

View File

@ -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")