Comfy-Org / Comfy-Org/ComfyUI

ComfyUI: RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 128 but got size 16 for tensor number 1 in the list.

Open
#14,140 1 comment 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

### Custom Node Testing

- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)

### Expected Behavior

[Flux Swap-Anything (Sam3.1).json](https://github.com/user-attachments/files/28309548/Flux.Swap-Anything.Sam3.1.json) No matter what I do, it won’t let me generate images. It keeps saying the resolution is incorrect, even though I've tried everything

### Actual Behavior

Image

### Steps to Reproduce

[flux2KleinSwapAnytingFace_sam31Native (2).zip](https://github.com/user-attachments/files/28309597/flux2KleinSwapAnytingFace_sam31Native.2.zip)

### Debug Logs

```powershell
ComfyUI Error Report
## Error Details
- **Node ID:** 135:126
- **Node Type:** SamplerCustomAdvanced
- **Exception Type:** RuntimeError
- **Exception Message:** RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 128 but got size 16 for tensor number 1 in the list.
```

### Other

[Log.txt](https://github.com/user-attachments/files/28309658/Log.txt)

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.