Skip to content

Commit 667a1b8

Browse files
Fix some custom nodes breaking. (Comfy-Org#12203)
1 parent 32621c6 commit 667a1b8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

comfy/model_patcher.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ def move_weight_functions(m, device):
111111
memory += f.move_to(device=device)
112112
return memory
113113

114+
def string_to_seed(data):
115+
logging.warning("WARNING: string_to_seed has moved from comfy.model_patcher to comfy.utils")
116+
return comfy.utils.string_to_seed(data)
117+
114118
class LowVramPatch:
115119
def __init__(self, key, patches, convert_func=None, set_func=None):
116120
self.key = key

0 commit comments

Comments
 (0)