nodes_model_patch: fix copy-paste coding error

This commit is contained in:
Rattus 2026-01-20 22:04:06 +10:00
parent f93e09a570
commit aef8d003c9

View File

@ -259,7 +259,7 @@ class ModelPatchLoader:
model = comfy.ldm.lumina.controlnet.ZImage_Control(device=comfy.model_management.unet_offload_device(), dtype=dtype, operations=comfy.ops.manual_cast, **config)
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,)