nodes_model_patch: fix copy-paste coding error

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

View File

@ -268,7 +268,7 @@ class ModelPatchLoader:
operations=comfy.ops.manual_cast) 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_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,) return (model_patcher,)