mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-30 13:33:42 +08:00
Merge 1368c20d88 into b353a7c863
This commit is contained in:
commit
84a7874a09
@ -733,6 +733,8 @@ class ModelPatcher:
|
||||
params = { name: param for name, param in m.named_parameters(recurse=False) }
|
||||
for name, param in m.named_parameters(recurse=True):
|
||||
if name not in params:
|
||||
if name.startswith("parametrizations."):
|
||||
continue
|
||||
default = True # default random weights in non leaf modules
|
||||
break
|
||||
if default and default_device is not None:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user