mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-06-13 21:01:06 +08:00
Update networks.py
This commit is contained in:
parent
7168036476
commit
da770a8239
@ -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())}')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user