index 3 is out of bounds for dimension 3 with size 3
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
Am I using this way correctly?

Error occurred when executing ImageToMask:
index 3 is out of bounds for dimension 3 with size 3
File "/mnt/workspace/ComfyUI/execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/mnt/workspace/ComfyUI/execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "/mnt/workspace/ComfyUI/execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/mnt/workspace/ComfyUI/comfy_extras/nodes_mask.py", line 128, in image_to_mask
mask = image[:, :, :, channels.index(channel)]
Contributor guide
Assessment
This issue has not been assessed yet.