Skip to content

Commit 3fd8cdc

Browse files
committed
fix dylora loraplus
1 parent 7fe8150 commit 3fd8cdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

networks/dylora.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -466,13 +466,13 @@ def assemble_params(loras, lr, ratio):
466466
params = assemble_params(
467467
self.text_encoder_loras,
468468
text_encoder_lr if text_encoder_lr is not None else default_lr,
469-
self.loraplus_text_encoder_lr_ratio or self.loraplus_ratio,
469+
self.loraplus_text_encoder_lr_ratio or self.loraplus_lr_ratio,
470470
)
471471
all_params.extend(params)
472472

473473
if self.unet_loras:
474474
params = assemble_params(
475-
self.unet_loras, default_lr if unet_lr is None else unet_lr, self.loraplus_unet_lr_ratio or self.loraplus_ratio
475+
self.unet_loras, default_lr if unet_lr is None else unet_lr, self.loraplus_unet_lr_ratio or self.loraplus_lr_ratio
476476
)
477477
all_params.extend(params)
478478

0 commit comments

Comments
 (0)