From 82c53085616252e483a78abceac3b7e23495e019 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" <128333288+ltdrdata@users.noreply.github.com> Date: Fri, 29 Nov 2024 10:30:28 +0900 Subject: [PATCH] Backward compatibility patch for changes in the method signature of `InpaintModelConditioning`. (#5825) https://github.com/comfyanonymous/ComfyUI/issues/5813 --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index cc21181b..6907bd4d 100644 --- a/nodes.py +++ b/nodes.py @@ -392,7 +392,7 @@ class InpaintModelConditioning: CATEGORY = "conditioning/inpaint" - def encode(self, positive, negative, pixels, vae, mask, noise_mask): + def encode(self, positive, negative, pixels, vae, mask, noise_mask=True): 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")