Merge pull request #527 from Manjiz/main

fix: support old LoRA without alpha raise "TypeError: argument of typ…
This commit is contained in:
Kohya S
2023-05-22 18:36:34 +09:00
committed by GitHub

View File

@@ -638,7 +638,7 @@ def create_network_from_weights(multiplier, file, vae, text_encoder, unet, weigh
# support old LoRA without alpha
for key in modules_dim.keys():
if key not in modules_alpha:
modules_alpha = modules_dim[key]
modules_alpha[key] = modules_dim[key]
module_class = LoRAInfModule if for_inference else LoRAModule