cubiq / ComfyUI_IPAdapter_plus

GNU General Public License v3.0
3.2k stars 240 forks source link

Error occurred when executing IPAdapterAdvanced: tuple index out of range #430

Closed QueenPuxxi closed 3 months ago

QueenPuxxi commented 3 months ago

I'm getting an error with the IPAdapterAdvanced node.

Error occurred when executing IPAdapterAdvanced:

tuple index out of range

File "C:\ComfyUI-aki-v1\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "C:\ComfyUI-aki-v1\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "C:\ComfyUI-aki-v1\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "C:\ComfyUI-aki-v1\custom_nodes\ComfyUI_IPAdapter_plus\IPAdapterPlus.py", line 639, in apply_ipadapter return (ipadapter_execute(model.clone(), ipadapter_model, clip_vision, ipa_args), ) File "C:\ComfyUI-aki-v1\custom_nodes\ComfyUI_IPAdapter_plus\IPAdapterPlus.py", line 225, in ipadapter_execute img_cond_embeds = encode_image_masked(clipvision, image) File "C:\ComfyUI-aki-v1\custom_nodes\ComfyUI_IPAdapter_plus\utils.py", line 152, in encode_image_masked pixel_values = clip_preprocess(image.to(clip_vision.load_device)).float() File "C:\ComfyUI-aki-v1\comfy\clip_vision.py", line 24, in clip_preprocess scale = (size / min(image.shape[2], image.shape[3]))

image

emcmanus commented 2 months ago

Looks like you fixed it, but this can happen if you pass IPAdapter an empty image.