Browse Source

Fix issue with get_model_object on patched model.

pull/3216/head
comfyanonymous 8 months ago
parent
commit
1f4fc9ea0c
  1. 5
      comfy/model_patcher.py

5
comfy/model_patcher.py

@ -154,7 +154,10 @@ class ModelPatcher:
if name in self.object_patches:
return self.object_patches[name]
else:
return comfy.utils.get_attr(self.model, name)
if name in self.object_patches_backup:
return self.object_patches_backup[name]
else:
return comfy.utils.get_attr(self.model, name)
def model_patches_to(self, device):
to = self.model_options["transformer_options"]

Loading…
Cancel
Save