Skip to content

Commit

Permalink
LoHA: Fixed blending error
Browse files Browse the repository at this point in the history
  • Loading branch information
ForserX authored Apr 8, 2023
1 parent bd03edc commit d244ca9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/onnx_web/convert/diffusion/lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ def blend_loras(
else:
if base_weights.shape != weights.shape:
blended = base_weights + weights.reshape(base_weights.shape)

blended = base_weights + weights
else:
blended = base_weights + weights

logger.trace("blended weight shape: %s", blended.shape)

Expand Down

0 comments on commit d244ca9

Please sign in to comment.