fix: support old LoRA without alpha raise "TypeError: argument of type 'int' is not iterable "

This commit is contained in:
琴动我心
2023-05-22 17:15:51 +08:00
committed by GitHub
parent c924c47f37
commit f7a1868fc2

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