make probe recognize lora format at https://civitai.com/models/224641

This commit is contained in:
Lincoln Stein
2023-12-14 22:52:50 -05:00
committed by Kent Keirsey
parent 454f01e0c1
commit ac3cf48d7f
2 changed files with 7 additions and 1 deletions

View File

@ -400,6 +400,8 @@ class LoRACheckpointProbe(CheckpointProbeBase):
return BaseModelType.StableDiffusion1
elif token_vector_length == 1024:
return BaseModelType.StableDiffusion2
elif token_vector_length == 1280:
return BaseModelType.StableDiffusionXL # recognizes format at https://civitai.com/models/224641 work
elif token_vector_length == 2048:
return BaseModelType.StableDiffusionXL
else: