"vscode:/vscode.git/clone" did not exist on "45171174b872c189ad4eec92ddaad69a6c06fd0f"
Commit 6ad0a6d7 authored by comfyanonymous's avatar comfyanonymous
Browse files

Don't patch weights when multiplier is zero.

parent af15add9
...@@ -359,6 +359,7 @@ class ModelPatcher: ...@@ -359,6 +359,7 @@ class ModelPatcher:
if len(v) == 1: if len(v) == 1:
w1 = v[0] w1 = v[0]
if alpha != 0.0:
if w1.shape != weight.shape: if w1.shape != weight.shape:
print("WARNING SHAPE MISMATCH {} WEIGHT NOT MERGED {} != {}".format(key, w1.shape, weight.shape)) print("WARNING SHAPE MISMATCH {} WEIGHT NOT MERGED {} != {}".format(key, w1.shape, weight.shape))
else: else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment