Comfy-Org / Comfy-Org/ComfyUI

sdxl_inpainting base model + controlnet, bug?

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

Description

### Expected Behavior

### Actual Behavior

Error in KSamplerAdvanced when using a ControlNet with an inpainting (SDXL) model. shape '[320, 9, 3, 3]' is invalid for input of size 11520 .
When I used the sdxl inpaint model and controlnet, comfyui reported errors that seemed incompatible. Also, I checked the code and found that the controlnet input seemed to be fixed in 4 dimensions instead of 9. Can you fix this problem.
Below is my test json

[test2.json](https://github.com/user-attachments/files/19384629/test2.json)

file
![Image](https://github.com/user-attachments/assets/97326259-f041-4d41-b400-607b7012a330)

### Steps to Reproduce

### Debug Logs

```powershell

```

### Other

_No response_

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.