mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Backward compatibility patch for changes in the method signature of InpaintModelConditioning
. (#5825)
https://github.com/comfyanonymous/ComfyUI/issues/5813
This commit is contained in:
parent
26fb2c68e8
commit
82c5308561
2
nodes.py
2
nodes.py
@ -392,7 +392,7 @@ class InpaintModelConditioning:
|
|||||||
|
|
||||||
CATEGORY = "conditioning/inpaint"
|
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
|
x = (pixels.shape[1] // 8) * 8
|
||||||
y = (pixels.shape[2] // 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")
|
mask = torch.nn.functional.interpolate(mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])), size=(pixels.shape[1], pixels.shape[2]), mode="bilinear")
|
||||||
|
Loading…
Reference in New Issue
Block a user