mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-02 17:50:19 +08:00
nodes_model_patch: fix copy-paste coding error
This commit is contained in:
parent
b915d13e57
commit
e36ffd2cee
@ -268,7 +268,7 @@ class ModelPatchLoader:
|
||||
operations=comfy.ops.manual_cast)
|
||||
|
||||
model_patcher = comfy.model_patcher.CoreModelPatcher(model, load_device=comfy.model_management.get_torch_device(), offload_device=comfy.model_management.unet_offload_device())
|
||||
model.load_state_dict(sd, assign=self.model_patcher.is_dynamic())
|
||||
model.load_state_dict(sd, assign=model_patcher.is_dynamic())
|
||||
return (model_patcher,)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user