LarryJane491 / Lora-Training-in-Comfy

This custom node lets you train LoRA directly in ComfyUI!
364 stars 50 forks source link

local variable 'image1' referenced before assignment #54

Closed DiDHack closed 3 months ago

DiDHack commented 3 months ago
Error occurred when executing LoRA Caption Load:

local variable 'image1' referenced before assignment

  File "/home/hack/ComfyUI/execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
  File "/home/hack/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/hack/ComfyUI/execution.py", line 74, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
  File "/home/hack/ComfyUI/custom_nodes/Image-Captioning-in-ComfyUI/LoRAcaption.py", line 148, in captionload
    return text, path, image1, len(images)

изображение

DiDHack commented 3 months ago

Need to use PNG only. Please wtite about it in the instruction.