ComfyUI_InstantID icon indicating copy to clipboard operation
ComfyUI_InstantID copied to clipboard

Error occurred when executing ApplyInstantID:

Open AMINEMM13 opened this issue 1 year ago • 9 comments

Error occurred when executing ApplyInstantID:

'embedding'

File "/content/drive/MyDrive/ComfyUI/execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/content/drive/MyDrive/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 "/content/drive/MyDrive/ComfyUI/execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "/content/drive/MyDrive/ComfyUI/custom_nodes/ComfyUI_InstantID/InstantID.py", line 427, in apply_instantid face_embed = extractFeatures(insightface, image) File "/content/drive/MyDrive/ComfyUI/custom_nodes/ComfyUI_InstantID/InstantID.py", line 330, in extractFeatures out.append(torch.from_numpy(face['embedding']).unsqueeze(0))

AMINEMM13 avatar Feb 25 '24 09:02 AMINEMM13

I think you have an old version of comfyui installed

cubiq avatar Feb 26 '24 17:02 cubiq

@cubiq I am getting the same error starting a few hours ago. Everything was working fine, both Comfy and the ComfyUI_InstantID node are up-to-date.

Were you able to solve this?

syddharth avatar Mar 28 '24 17:03 syddharth

Figured it out, one of the files in models\insightface\models\antelopev2\ was missing.

syddharth avatar Mar 28 '24 18:03 syddharth

one of the files in models\insightface\models\antelopev2\ was missing.

which files?

longge0126 avatar Apr 11 '24 03:04 longge0126

Figured it out, one of the files in models\insightface\models\antelopev2\ was missing.

image C1w4GqtMJk i have 4files in it

longge0126 avatar Apr 11 '24 03:04 longge0126

Hello, I have also encountered this situation, but there are 5 files in my "antievev2"

q1446227740 avatar Apr 11 '24 06:04 q1446227740

Error occurred when executing ApplyInstantIDAdvanced:

'NoneType' object has no attribute 'copy'

File "D:\SD,ai\ComfyUI-aki-v1.3\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\SD,ai\ComfyUI-aki-v1.3\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "D:\SD,ai\ComfyUI-aki-v1.3\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "D:\SD,ai\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_InstantID\InstantID.py", line 382, in apply_instantid c_net = control_net.copy().set_cond_hint(face_kps.movedim(-1,1), cn_strength, (start_at, end_at))

q1446227740 avatar Apr 11 '24 06:04 q1446227740

please try to upgrade both instantid and ipadapter if you are using both. They are deeply connected with one another.

cubiq avatar Apr 11 '24 06:04 cubiq

Thank you for your guidance. I have noticed that I made a simple mistake and did not use the 'ipadapter' XL version,

q1446227740 avatar Apr 11 '24 06:04 q1446227740