[Bug] Audio workflow Tuple index out of range during decode tiled
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 155
Description
### Expected Behavior
The VAEDecode node was decoding while I was using AceStep to generate music
### Actual Behavior
An error occurred. However, while using the workflow, it only happens every once in a while (not consistent error).
```
File "/home/c_byrne/projects/comfy-testing-environment/ComfyUI/comfy/utils.py", line 959, in tiled_scale_multidim
if feather >= mask.shape[d]:
~~~~~~~~~~^^^
IndexError: tuple index out of range
```
### Steps to Reproduce
Reproduce with this workflow:
[tuple-index-out-of-range.json](https://github.com/user-attachments/files/20086346/tuple-index-out-of-range.json)
### Debug Logs
```powershell
Traceback (most recent call last):
File "/home/c_byrne/projects/comfy-testing-environment/ComfyUI/execution.py", line 347, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/c_byrne/projects/comfy-testing-environment/ComfyUI/execution.py", line 222, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/c_byrne/projects/comfy-testing-environment/ComfyUI/execution.py", line 194, in _map_node_over_list
process_inputs(input_dict, i)
File "/home/c_byrne/projects/comfy-testing-environment/ComfyUI/execution.py", line 183, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/c_byrne/projects/comfy-testing-environment/ComfyUI/comfy_extras/nodes_audio.py", line 86, in decode
audio = vae.decode(samples["samples"]).movedim(-1, 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/c_byrne/projects/comfy-testing-environment/ComfyUI/comfy/sd.py", line 563, in decode
pixel_samples = self.decode_tiled_(samples_in)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/c_byrne/projects/comfy-testing-environment/ComfyUI/comfy/sd.py", line 506, in decode_tiled_
(comfy.utils.tiled_scale(samples, decode_fn, tile_x // 2, tile_y * 2, overlap, upscale_amount = self.upscale_ratio, output_device=self.output_device, pbar = pbar) +
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/c_byrne/projects/comfy-testing-environment/ComfyUI/comfy/utils.py", line 982, in tiled_scale
return tiled_scale_multidim(samples, function, (tile_y, tile_x), overlap=overlap, upscale_amount=upscale_amount, out_channels=out_channels, output_device=output_device, pbar=pbar)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/c_byrne/projects/comfy-testing-environment/ComfyUI/.venv/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/c_byrne/projects/comfy-testing-environment/ComfyUI/comfy/utils.py", line 959, in tiled_scale_multidim
if feather >= mask.shape[d]:
~~~~~~~~~~^^^
IndexError: tuple index out of range
```
### Other
- https://github.com/comfyanonymous/ComfyUI/pull/7972
Contributor guide
Assessment
This issue has not been assessed yet.