Skip to content

Commit 9ba7929

Browse files
committed
Adapt patch function (hooks)
1 parent 20092c3 commit 9ba7929

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nodes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ def load_fooocus_patch(lora: dict, to_load: dict):
6767
injected_model_patcher_calculate_weight = False
6868

6969

70-
def calculate_weight_patched(patches, weight, key, intermediate_dtype=torch.float32):
70+
def calculate_weight_patched(
71+
patches, weight, key, intermediate_dtype=torch.float32, original_weights=None
72+
):
7173
remaining = []
7274

7375
for p in patches:

0 commit comments

Comments
 (0)