Skip to content

Commit

Permalink
Merge pull request #150 from Kosinkadink/current_device_fix
Browse files Browse the repository at this point in the history
Remove current_device from ModelPatcher init
  • Loading branch information
Kosinkadink authored Aug 6, 2024
2 parents f6d622a + 47d0115 commit b2c9b7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion adv_control/control_sparsectrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def patch_model_lowvram(self, device_to=None, *args, **kwargs):

def clone(self):
# normal ModelPatcher clone actions
n = SparseModelPatcher(self.model, self.load_device, self.offload_device, self.size, self.current_device, weight_inplace_update=self.weight_inplace_update)
n = SparseModelPatcher(self.model, self.load_device, self.offload_device, self.size, weight_inplace_update=self.weight_inplace_update)
n.patches = {}
for k in self.patches:
n.patches[k] = self.patches[k][:]
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[project]
name = "comfyui-advanced-controlnet"
description = "Nodes for scheduling ControlNet strength across timesteps and batched latents, as well as applying custom weights and attention masks."
version = "1.1.4"
license = "LICENSE"
version = "1.1.5"
license = { file = "LICENSE" }
dependencies = []

[project.urls]
Expand Down

0 comments on commit b2c9b7a

Please sign in to comment.