Cannot allocate memory, try to allocate huge amount of memory while executing RepeatImageBatch
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 155
Description
Error occurred when executing RepeatImageBatch:
[enforce fail at alloc_cpu.cpp:117] err == 0. DefaultCPUAllocator: can't allocate memory: you tried to allocate 62259199377408 bytes. Error code 12 (Cannot allocate memory)
File "/home/wsbblyy/ComfyUI/execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/home/wsbblyy/ComfyUI/execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "/home/wsbblyy/ComfyUI/execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/home/wsbblyy/ComfyUI/comfy_extras/nodes_images.py", line 48, in repeat
s = image.repeat((amount, 1,1,1))
Contributor guide
Research direction
Start with comfy_extras/nodes_images.py at the repeat method on line 48, then trace how RepeatImageBatch inputs reach image.repeat. Reproduce the reported execution and inspect the input values that lead to the allocation request. The issue does not state the expected behavior or a proposed fix, so clarify the intended outcome before defining done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- backend, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100