Skip to content

Commit 1059769

Browse files
KohakuBlueleafruchej
authored andcommitted
possible fix of wrong scale
comfyanonymous/ComfyUI#3922
1 parent eb1bba6 commit 1059769

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extensions-builtin/Lora/network.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,12 @@ def finalize_updown(self, updown, orig_weight, output_shape, ex_bias=None):
204204
if ex_bias is not None:
205205
ex_bias = ex_bias * self.multiplier()
206206

207+
updown = updown * self.calc_scale()
208+
207209
if self.dora_scale is not None:
208210
updown = self.apply_weight_decompose(updown, orig_weight)
209211

210-
return updown * self.calc_scale() * self.multiplier(), ex_bias
212+
return updown * self.multiplier(), ex_bias
211213

212214
def calc_updown(self, target):
213215
raise NotImplementedError()

0 commit comments

Comments
 (0)