Skip to content

Commit f6adc32

Browse files
authored
Merge pull request #118 from Kosinkadink/develop
Prepare for ComfyUI update that removes model_keys prop from ModelPatcher
2 parents 95441b6 + cb38866 commit f6adc32

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

adv_control/control_sparsectrl.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ def clone(self):
146146

147147
n.object_patches = self.object_patches.copy()
148148
n.model_options = copy.deepcopy(self.model_options)
149-
n.model_keys = self.model_keys
149+
if hasattr(n, "model_keys"):
150+
n.model_keys = self.model_keys
150151
if hasattr(n, "backup"):
151152
self.backup = n.backup
152153
if hasattr(n, "object_patches_backup"):

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "comfyui-advanced-controlnet"
33
description = "Nodes for scheduling ControlNet strength across timesteps and batched latents, as well as applying custom weights and attention masks."
4-
version = "1.0.3"
4+
version = "1.0.4"
55
license = "LICENSE"
66
dependencies = []
77

0 commit comments

Comments
 (0)