Skip to content

Commit

Permalink
fix dylora loraplus
Browse files Browse the repository at this point in the history
  • Loading branch information
kohya-ss committed May 6, 2024
1 parent 7fe8150 commit 3fd8cdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions networks/dylora.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,13 +466,13 @@ def assemble_params(loras, lr, ratio):
params = assemble_params(
self.text_encoder_loras,
text_encoder_lr if text_encoder_lr is not None else default_lr,
self.loraplus_text_encoder_lr_ratio or self.loraplus_ratio,
self.loraplus_text_encoder_lr_ratio or self.loraplus_lr_ratio,
)
all_params.extend(params)

if self.unet_loras:
params = assemble_params(
self.unet_loras, default_lr if unet_lr is None else unet_lr, self.loraplus_unet_lr_ratio or self.loraplus_ratio
self.unet_loras, default_lr if unet_lr is None else unet_lr, self.loraplus_unet_lr_ratio or self.loraplus_lr_ratio
)
all_params.extend(params)

Expand Down

0 comments on commit 3fd8cdc

Please sign in to comment.