Skip to content

Commit 0ccb304

Browse files
committed
Ruff format
1 parent ab0bfa7 commit 0ccb304

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invokeai/backend/stable_diffusion/extensions/lora_patcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def _patch_model(
138138
# TODO: debug on lycoris
139139
lora_param_weight = lora_param_weight.reshape(module_param.shape)
140140

141-
lora_param_weight *= (lora_weight * layer_scale)
141+
lora_param_weight *= lora_weight * layer_scale
142142
module_param += lora_param_weight.to(dtype=dtype)
143143

144144
layer.to(device=TorchDevice.CPU_DEVICE)

0 commit comments

Comments
 (0)