Exception during processing !!! 'int' object has no attribute 'shape'
Got errors on "LTX-2.3_-_I2V_T2V_Music-Video_multi-scene_full_render.json " workflow. I ran it exactly as is, just using GGUF Models and my own images. Prompt, title, I left everything exactly as it was in the original workflow. I only used the first and second scenes for testing.
System:
About
ComfyUI 0.22.0
ComfyUI_frontend v1.46.0
Templates v0.9.79
System Info
OS: win32
Python Version: 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
Embedded Python: true
Pytorch Version: 2.9.1+cu130
Arguments:
ComfyUI\main.py --windows-standalone-build --disable-dynamic-vram --use-sage-attention --lowvram --reserve-vram=4 --disable-smart-memory --disable-pinned-memory --fast fp16_accumulation --disable-async-offload --preview-method=none --front-end-version Comfy-Org/ComfyUI_frontend@latest --output-directory E:\Comfyui_Output --input-directory E:\Comfyui_Input
RAM Total: 31.93 GB
RAM Free: 12.48 GB
Templates Version: 0.9.79
Devices
Name: cuda:0 NVIDIA GeForce RTX 4060 : cudaMallocAsync
Type: cuda
VRAM Total: 8 GB
VRAM Free: 6.89 GB
Torch VRAM Total: 32 MB
Torch VRAM Free: 23.88 MB
Error message:
got prompt
Requested to load AudioVAE
loaded completely; 693.46 MB loaded, full load: True
VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
gguf qtypes: F32 (2672), BF16 (28), Q3_K (1744)
model weight dtype torch.bfloat16, manual cast: None
model_type FLUX
Requested to load LTXAV
loaded partially; 2068.13 MB usable, 1985.56 MB loaded, 7568.18 MB offloaded, 82.56 MB buffer reserved, lowvram patches: 0
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 8/8 [03:26<00:00, 25.84s/it]
Requested to load VideoVAE
loaded completely; 2068.12 MB usable, 1384.94 MB loaded, full load: True
Requested to load LTXAV
0 models unloaded.
loaded partially; 0.00 MB usable, 0.00 MB loaded, 9553.75 MB offloaded, 1152.14 MB buffer reserved, lowvram patches: 0
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [03:05<00:00, 61.99s/it]
Requested to load VideoVAE
0 models unloaded.
loaded partially; 0.00 MB usable, 0.00 MB loaded, 1384.94 MB offloaded, 216.01 MB buffer reserved, lowvram patches: 0
Requested to load AudioVAE
loaded completely; 693.46 MB loaded, full load: True
Requested to load VideoVAE
loaded completely; 2068.12 MB usable, 1384.94 MB loaded, full load: True
Requested to load LTXAV
loaded partially; 2064.13 MB usable, 1981.56 MB loaded, 7572.18 MB offloaded, 82.56 MB buffer reserved, lowvram patches: 0
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 8/8 [03:09<00:00, 23.65s/it]
Requested to load VideoVAE
loaded completely; 2068.12 MB usable, 1384.94 MB loaded, full load: True
Requested to load LTXAV
0 models unloaded.
loaded partially; 0.00 MB usable, 0.00 MB loaded, 9553.75 MB offloaded, 1152.14 MB buffer reserved, lowvram patches: 0
100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 3/3 [02:59<00:00, 59.94s/it]
Requested to load VideoVAE
0 models unloaded.
loaded partially; 0.00 MB usable, 0.00 MB loaded, 1384.94 MB offloaded, 216.01 MB buffer reserved, lowvram patches: 0
VRAMdebug: free memory before: 7,322,541,856
VRAMdebug: free memory after: 7,322,541,856
VRAMdebug: freed memory: 0
!!! Exception during processing !!! 'int' object has no attribute 'shape'
Traceback (most recent call last):
File "E:\ComfyUI-Easy-Install\ComfyUI\execution.py", line 535, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\ComfyUI\execution.py", line 335, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\ComfyUI\custom_nodes\comfyui-lora-manager\py\metadata_collector\metadata_hook.py", line 171, in async_map_node_over_list_with_metadata
results = await original_map_node_over_list(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\ComfyUI\execution.py", line 309, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "E:\ComfyUI-Easy-Install\ComfyUI\execution.py", line 297, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\ComfyUI\custom_nodes\ComfyUI-KJNodes\nodes\image_nodes.py", line 2603, in combine
max_ch = max(max_ch, img.shape[-1])
^^^^^^^^^
AttributeError: 'int' object has no attribute 'shape'
Prompt executed in 00:29:06
Next error on "LTX-2.3_-_I2V_T2V_Music-Video_multi-scene_full_render.json " workflow:
It looks like it ended after the third scene.
!!! Exception during processing !!! cannot reshape tensor of 0 elements into shape [-1, 0] because the unspecified dimension size -1 can be any value and is ambiguous
Traceback (most recent call last):
File "E:\ComfyUI-Easy-Install\ComfyUI\execution.py", line 535, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\ComfyUI\execution.py", line 335, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\ComfyUI\custom_nodes\comfyui-lora-manager\py\metadata_collector\metadata_hook.py", line 171, in async_map_node_over_list_with_metadata
results = await original_map_node_over_list(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\ComfyUI\execution.py", line 309, in async_map_node_over_list
await process_inputs(input_dict, i)
File "E:\ComfyUI-Easy-Install\ComfyUI\execution.py", line 297, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\ComfyUI\comfy_api\internal_init.py", line 149, in wrapped_func
return method(locked_class, **inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\ComfyUI\comfy_api\latest_io.py", line 1833, in EXECUTE_NORMALIZED
to_return = cls.execute(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\ComfyUI\comfy_extras\nodes_lt_audio.py", line 57, in execute
return super().execute(audio_vae, audio)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\ComfyUI\comfy_extras\nodes_audio.py", line 94, in execute
t = vae.encode(waveform.movedim(1, -1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\ComfyUI\comfy\sd.py", line 1136, in encode
model_management.raise_non_oom(e)
File "E:\ComfyUI-Easy-Install\ComfyUI\comfy\model_management.py", line 286, in raise_non_oom
raise e
File "E:\ComfyUI-Easy-Install\ComfyUI\comfy\sd.py", line 1129, in encode
out = self.first_stage_model.encode(pixels_in)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\ComfyUI\comfy\ldm\lightricks\vae\audio_vae.py", line 153, in encode
mel_spec = self.preprocessor.waveform_to_mel(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\ComfyUI\comfy\ldm\lightricks\vae\audio_vae.py", line 82, in waveform_to_mel
waveform = self.resample(waveform, waveform_sample_rate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\ComfyUI\comfy\ldm\lightricks\vae\audio_vae.py", line 77, in resample
return torchaudio.functional.resample(waveform, source_rate, self.target_sample_rate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\python_embeded\Lib\site-packages\torchaudio\functional\functional.py", line 1488, in resample
resampled = _apply_sinc_resample_kernel(waveform, orig_freq, new_freq, gcd, kernel, width)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI-Easy-Install\python_embeded\Lib\site-packages\torchaudio\functional\functional.py", line 1420, in _apply_sinc_resample_kernel
waveform = waveform.view(-1, shape[-1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: cannot reshape tensor of 0 elements into shape [-1, 0] because the unspecified dimension size -1 can be any value and is ambiguous
Prompt executed in 00:44:07
Hmm not sure what those errors are. Will try the wf, and see if comfy changed something
Thank you. The first Error disapeared as I also bypassed the unused get_frames 03 through 05 and disconnected them from image3β5.
The second error showed up, as I used all 5 scenes (before that, I reconnected 3β5 again)
It worked. I must have reconnected something wrong. The WF is working great!

