The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Del the right object when applying lora.
comfyanonymous12a6e93171ce
diff --git a/comfy/sd.py b/comfy/sd.pyindex 7f7c06bc5..ddafa0b52 100644--- a/comfy/sd.py+++ b/comfy/sd.py@@ -353,7 +353,7 @@ class ModelPatcher:temp_weight = weight.to(torch.float32, copy=True)out_weight = self.calculate_weight(self.patches[key], temp_weight, key).to(weight.dtype)set_attr(self.model, key, out_weight)- del temp_weight+ del weightreturn self.modeldef calculate_weight(self, patches, weight, key):