mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 23:00:51 +08:00
Ensure patch_data is defined
This commit is contained in:
parent
d7f7d81b8a
commit
2f12a8a790
@ -360,11 +360,13 @@ class ModelPatcher(ModelManageable):
|
||||
if isinstance(v, list):
|
||||
v = (self.calculate_weight(v[1:], v[0].clone(), key),)
|
||||
|
||||
if len(v) == 1:
|
||||
patch_type = "diff"
|
||||
elif len(v) == 2:
|
||||
patch_type = "diff"
|
||||
if len(v) == 2:
|
||||
patch_type = v[0]
|
||||
v = v[1]
|
||||
elif len(v) != 1:
|
||||
logging.warning("patch {} not recognized: {}".format(key, v))
|
||||
continue
|
||||
|
||||
if patch_type == "diff":
|
||||
w1 = v[0]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user