Comfy-Org / Comfy-Org/ComfyUI

Error occurred when using VAE Encode For Inpaint

Open
#2,535 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

I use KSamplerAdvanced for face replacement, generate a basic image with SDXL, and then use the 1.5 model to redraw the face with Refiner. Three results will emerge:

- One is that the face can be replaced normally.

- One is that the face is painted with a mask-like appearance.

- The other is an error similar to the following: "output with shape [1, 1152, 896] doesn't match the broadcast shape [2, 1152, 896]."

![ComfyUI_01947_](https://github.com/comfyanonymous/ComfyUI/assets/135709587/9ed0e71f-a875-4a72-96eb-2adaddc2cece)
![PixPin_2024-01-13_20-56-06](https://github.com/comfyanonymous/ComfyUI/assets/135709587/0689259a-2965-448a-a540-bf82e8384b19)
[workflow1.json](https://github.com/comfyanonymous/ComfyUI/files/13928183/workflow1.json)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.