ComfyUI KSamplerAdvanced Tensor Size Mismatch and Out of Memory Errors
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 155
Description
Hello everyone,
I've been working with ComfyUI and have encountered a series of errors that I'm unable to resolve. The main issues are as follows:
I receive a "tensor size mismatch" error stating, "The size of tensor a (8) must match the size of tensor b (0) at non-singleton dimension 0."
Subsequently, I encounter an "out of memory" error with details indicating that the allocation on device 0 would exceed allowed memory.
These errors persist despite attempting various fixes, such as adjusting batch sizes and ensuring that all nodes and dependencies are up to date. It appears that somewhere along the line, the tensors being processed are not aligning correctly, and my system is running out of allocatable memory to execute the tasks.


I'm reaching out to see if anyone has insights into which specific nodes or settings within ComfyUI could be tweaked to address these issues, or any tips on memory management for large tensor operations within this context.
Any guidance or suggestions would be greatly appreciated!
Contributor guide
Assessment
This issue has not been assessed yet.