Skip to content

Error using Load Image Batch node  #81

Description

@howon52

Hello, and thank you for the great addition to comfyui.

I am getting the following error while trying a simple batch load.

Prompt executed in 0.00 seconds
got prompt
Traceback (most recent call last):
  File "/mnt/d/Github_D/ComfyUI/execution.py", line 257, in execute
    recursive_execute(self.server, prompt, self.outputs, x, extra_data, executed, prompt_id, self.outputs_ui)
  File "/mnt/d/Github_D/ComfyUI/execution.py", line 128, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
  File "/mnt/d/Github_D/ComfyUI/execution.py", line 75, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
  File "/mnt/d/Github_D/ComfyUI/execution.py", line 68, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
  File "/mnt/d/Github_D/ComfyUI/nodes.py", line 946, in save_images
    filename_prefix = compute_vars(filename_prefix)
  File "/mnt/d/Github_D/ComfyUI/nodes.py", line 942, in compute_vars
    input = input.replace("%width%", str(images[0].shape[1]))
TypeError: 'NoneType' object is not subscriptable

Steps to reproduce:

  • Placed images in ./ComfyUI/input/
  • Simple nodes to preview image as below.
    image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions