ManglerFTW / ComfyI2I

ComfyI2I is a set of custom nodes for ComfyUI that help with image 2 image functions.
Other
158 stars 16 forks source link

Run error #31

Open qiqiApink opened 3 months ago

qiqiApink commented 3 months ago

I got the following error when running the color transfer node

Traceback (most recent call last):
  File "/home/work/comfyui/execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
  File "/home/work/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/work/comfyui/execution.py", line 74, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
  File "/home/work/comfyui/custom_nodes/ComfyI2I/ComfyI2I.py", line 1275, in ColorXfer2
    colors1 = extract(Source, no_of_colors, mask_np=mask_torch)
UnboundLocalError: local variable 'mask_torch' referenced before assignment

Can you give me some advice?