comfyui-inpaint-nodes icon indicating copy to clipboard operation
comfyui-inpaint-nodes copied to clipboard

Error with VAE EncodeForInPaint

Open mrfrostycakes opened this issue 8 months ago • 1 comments

I'm getting the following error:

"Given groups=1, weight of size [128, 3, 3, 3], expected input[1, 4, 1024, 624] to have 3 channels, but got 4 channels instead"

I've used this workflow before, but for some reason, it doesn't like the mask in the image. Any ideas how I can circumvent this problem?

Image

mrfrostycakes avatar Mar 06 '25 19:03 mrfrostycakes

If VAE Encode for inpainting doesn't like 4-channel images, you can split the alpha off with "Split Image With Alpha" node. Maybe that will work?

Acly avatar Mar 14 '25 11:03 Acly