WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.15k stars 170 forks source link

Error occurred when executing BLIPCaption: 'tuple' object has no attribute 'to' #355

Open wirytiox opened 6 months ago

wirytiox commented 6 months ago

i am getting this error: Error occurred when executing BLIPCaption:

'tuple' object has no attribute 'to'

File "C:\Users\juanj\OneDrive\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\juanj\OneDrive\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\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 "C:\Users\juanj\OneDrive\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\juanj\OneDrive\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture\modules\interrogate\blip_node.py", line 187, in blip_caption
blip_model = blip_model.to(device)
^^^^^^^^^^^^^

this is the blip setup image i did the install of requirements, yet i receive the same issue

blip analyze image doesn't present the same issue

Ratinod commented 6 months ago

BLIP Caption node not from "was-node-suite-comfyui ". It's from "comfyui-art-venture". And comfyui-art-venture have own "Blip Loader" node. However, "comfyui-art-venture" has not been updated recently and is starting to get incompatibility errors. @WASasquatch Can you implement the min_length and max_length settings in your "BLIP Analyze Image" (if it is not difficult and not time-consuming to implement)? Reducing min_length sometimes allows you to get rid of repetitions in the text.

WASasquatch commented 6 months ago

Was about to say, I somehow don't remember making that node at all 😂

I'll take a gander at improving the analyze method.

petercham commented 6 months ago

正要说,我不知何故根本不记得制作了那个节点 😂

我将尝试改进分析方法。

https://github.com/WASasquatch/was-node-suite-comfyui/issues/369 The BLIP Analyze Image node has also been experiencing an incompatibility, which occurred the day before yesterday after the ComfyUI version update