From c5c0ea666f8456b5a788092bad88528bbf34f559 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Fri, 12 May 2023 20:34:48 -0400 Subject: [PATCH] noise_mask in latent should be in a single format. --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index 760db24e..c2201daf 100644 --- a/nodes.py +++ b/nodes.py @@ -795,7 +795,7 @@ class SetLatentNoiseMask: def set_mask(self, samples, mask): s = samples.copy() - s["noise_mask"] = mask + s["noise_mask"] = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])) return (s,) def common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent, denoise=1.0, disable_noise=False, start_step=None, last_step=None, force_full_denoise=False):