Update networks.py

This commit is contained in:
benjimon 2025-05-27 09:17:22 -07:00 committed by GitHub
parent 7168036476
commit da770a8239
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,9 +22,9 @@ def load_lora_for_models(model, clip, lora, strength_model, strength_clip, filen
lora_unet, lora_unmatch = load_lora(lora_unmatch, unet_keys)
lora_clip, lora_unmatch = load_lora(lora_unmatch, clip_keys)
if len(lora_unmatch) > 12:
print(f'[LORA] LoRA version mismatch for {model_flag}: {filename}')
return model, clip
#if len(lora_unmatch) > 12:
#print(f'[LORA] LoRA version mismatch for {model_flag}: {filename}')
#return model, clip
if len(lora_unmatch) > 0:
print(f'[LORA] Loading {filename} for {model_flag} with unmatched keys {list(lora_unmatch.keys())}')