Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AttributeError in OneFlowDeepCacheSpeedUpModelPatcher #774

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions onediff_comfy_nodes/utils/model_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ def __init__(
else:
self.current_device = current_device

self.model_lowvram = getattr(model, "model_lowvram", False)

def get_mixed_speedup_class(module_cls):
class MixedSpeedUpModelPatcher(OneFlowSpeedUpModelPatcher, module_cls):
Expand Down Expand Up @@ -584,6 +585,8 @@ def clone(self):
n.object_patches = self.object_patches.copy()
n.model_options = copy.deepcopy(self.model_options)
n.model_keys = self.model_keys

n.model_lowvram = self.model_lowvram
return n

return MixedSpeedUpModelPatcher