cubiq / ComfyUI_InstantID

Apache License 2.0
945 stars 50 forks source link

Error occurred when executing ApplyInstantID: #50

Open AMINEMM13 opened 4 months ago

AMINEMM13 commented 4 months ago

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))

cubiq commented 4 months ago

I think you have an old version of comfyui installed

syddharth commented 3 months ago

@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 commented 3 months ago

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

longge0126 commented 2 months ago

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

which files?

longge0126 commented 2 months ago

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

image C1w4GqtMJk i have 4files in it

q1446227740 commented 2 months ago

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

q1446227740 commented 2 months ago

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))

cubiq commented 2 months ago

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

q1446227740 commented 2 months ago

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