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.

Rename add_noise_mask -> noise_mask.

comfyanonymous898615122f22
diff --git a/nodes.py b/nodes.py
index 300cfcf17..7f1515867 100644
--- a/nodes.py
+++ b/nodes.py
@@ -382,7 +382,7 @@ class InpaintModelConditioning:
"vae": ("VAE", ),
"pixels": ("IMAGE", ),
"mask": ("MASK", ),
- "add_noise_mask": ("BOOLEAN", {"default": True, "tooltip": "Add a noise mask to the latent so sampling will only happen within the mask. Might improve results or completely break things depending on the model."}),
+ "noise_mask": ("BOOLEAN", {"default": True, "tooltip": "Add a noise mask to the latent so sampling will only happen within the mask. Might improve results or completely break things depending on the model."}),
}}
RETURN_TYPES = ("CONDITIONING","CONDITIONING","LATENT")
@@ -391,7 +391,7 @@ class InpaintModelConditioning:
CATEGORY = "conditioning/inpaint"
- def encode(self, positive, negative, pixels, vae, mask, add_noise_mask):
+ def encode(self, positive, negative, pixels, vae, mask, noise_mask):
x = (pixels.shape[1] // 8) * 8
y = (pixels.shape[2] // 8) * 8
mask = torch.nn.functional.interpolate(mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])), size=(pixels.shape[1], pixels.shape[2]), mode="bilinear")
@@ -415,7 +415,7 @@ class InpaintModelConditioning:
out_latent = {}
out_latent["samples"] = orig_latent
- if add_noise_mask:
+ if noise_mask:
out_latent["noise_mask"] = mask
out = []