if-ai / ComfyUI-IF_AI_tools

ComfyUI-IF_AI_tools is a set of custom nodes for ComfyUI that allows you to generate prompts using a local Large Language Model (LLM) via Ollama. This tool enables you to enhance your image generation workflow by leveraging the power of language models.
https://ko-fi.com/impactframes
368 stars 27 forks source link

Getting error IFChatPrompt Describe Picture #60

Closed gonzalu closed 2 days ago

gonzalu commented 3 days ago

Suddenly getting this error:

image

!!! Exception during processing!!! IFChatPrompt.describe_picture() got an unexpected keyword argument 'image'
Traceback (most recent call last):
  File "E:\ComfyUI\ComfyUI\execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\ComfyUI\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 "E:\ComfyUI\ComfyUI\execution.py", line 74, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: IFChatPrompt.describe_picture() got an unexpected keyword argument 'image'
if-ai commented 2 days ago

almost forgot to reply I can't reproduce the error on my side the SD prompt in ollama local models sometimes comes bad depending on the model you have if you have the recommended ones it should work okay and defenetly works great on the api models like haiku and gpt4o YZt5W1HJaw thorium_uRsDQVh7cK

gonzalu commented 2 days ago

I was able to get rid of the problem by recreating the node itself... Seems that when I opened it from the saved workflow it did not pick up the settings correctly. Deleting the node and re-inserting the node fixed it for now.

Thank you

if-ai commented 2 days ago

Fantastic glad you solve it on your own. Thanks for leaving the solution here.