mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-06 23:32:30 +08:00
Merge 1368c20d88 into 0c63b4f6e3
This commit is contained in:
commit
536b12b658
@ -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