cubiq / ComfyUI_IPAdapter_plus

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

Using comfyui web generates the image normally, but the api reports an error. #441

Open Song367 opened 2 months ago

Song367 commented 2 months ago

Using comfyui web generates the image normally, but the api reports an error.

!!! Exception during processing !!! Traceback (most recent call last): File "E:\workplace\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "E:\workplace\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:\workplace\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) File "E:\workplace\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus\IPAdapterPlus.py", line 712, in apply_ipadapter face_img = tensorToNP(image) File "E:\workplace\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus\IPAdapterPlus.py", line 337, in tensorToNP out = torch.clamp(255. image.detach().cpu(), 0, 255).to(torch.uint8) AttributeError: 'NoneType' object has no attribute 'detach'

cubiq commented 2 months ago

you are probably not providing the image

Song367 commented 2 months ago

Inside the json, the image provided by the

you are probably not providing the image