fix comment

This commit is contained in:
Lincoln Stein 2023-12-14 23:04:13 -05:00 committed by Kent Keirsey
parent ac3cf48d7f
commit 212dbaf9a2
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ def lora_token_vector_length(checkpoint: dict) -> int:
lora_token_vector_length = _get_shape_1(key, tensor, checkpoint)
elif key.startswith("lora_unet_") and (
"time_emb_proj.lora_down" in key
): # recognizes format at https://civitai.com/models/224641 work
): # recognizes format at https://civitai.com/models/224641
lora_token_vector_length = _get_shape_1(key, tensor, checkpoint)
elif key.startswith("lora_te") and "_self_attn_" in key:
tmp_length = _get_shape_1(key, tensor, checkpoint)

View File

@ -401,7 +401,7 @@ class LoRACheckpointProbe(CheckpointProbeBase):
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
return BaseModelType.StableDiffusionXL # recognizes format at https://civitai.com/models/224641
elif token_vector_length == 2048:
return BaseModelType.StableDiffusionXL
else: