Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix error message in model_patcher.py

Simon Lui18617967e5be
diff --git a/comfy/model_patcher.py b/comfy/model_patcher.py
index 2f087a600..a6ee0bae1 100644
--- a/comfy/model_patcher.py
+++ b/comfy/model_patcher.py
@@ -145,7 +145,7 @@ class ModelPatcher:
model_sd = self.model_state_dict()
for key in self.patches:
if key not in model_sd:
- print("could not patch. key doesn't exist in model:", k)
+ print("could not patch. key doesn't exist in model:", key)
continue
weight = model_sd[key]