cubiq / ComfyUI_InstantID

Apache License 2.0
945 stars 50 forks source link

Encountered an error message. about('CrossAttentionPatch' object has no attribute 'add') #155

Closed ThinkpeachQ closed 1 month ago

ThinkpeachQ commented 1 month ago

Error occurred when executing ApplyInstantID:

'CrossAttentionPatch' object has no attribute 'add'

File "F:\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "F:\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 "F:\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "F:\ComfyUI\custom_nodes\ComfyUI_InstantID\InstantID.py", line 353, in apply_instantid _set_model_patch_replace(work_model, patch_kwargs, ("input", id, index)) File "F:\ComfyUI\custom_nodes\ComfyUI_InstantID\InstantID.py", line 136, in _set_model_patch_replace to["patches_replace"]["attn2"][key].add(instantid_attention, patch_kwargs)

image image image The files required for instantID are all in their respective locations

guopei6 commented 1 month ago

mee too

cubiq commented 1 month ago

upgrade any of the following that you have installed: ipadapter, pulid and instantid

songnan1111 commented 1 month ago

20240523-141802 Is the problem solved? My mistake is exactly the same as yours

cubiq commented 1 month ago

yes you need to update ipadapter, pulid and instantid (if they are installed)