cubiq / ComfyUI_InstantID

Apache License 2.0
936 stars 50 forks source link

'NoneType' object has no attribute 'copy' #173

Open atuoyi opened 2 weeks ago

atuoyi commented 2 weeks ago

Error occurred when executing ApplyInstantID:

'NoneType' object has no attribute 'copy'

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 383, in apply_instantid c_net = control_net.copy().set_cond_hint(face_kps.movedim(-1,1), cn_strength, (start_at, end_at))

bollerdominik commented 6 days ago

I have the same issue here. Any suggestion how to fix it?

cubiq commented 6 days ago

you need to update comfy

pi3412 commented 6 days ago

The same here. ComfyUI just got updated and the InstantID nodes are freshly installed, the same error still occurs. @cubiq: btw, thank you very much for your contributions to Comfy, very appreciated!!!

pi3412 commented 6 days ago

The same here. ComfyUI just got updated and the InstantID nodes are freshly installed, the same error still occurs. @cubiq: btw, thank you very much for your contributions to Comfy, very appreciated!!!

Solved for me: I used the wrong "diffusion_pytorch_model.safetensors", not the one you have linked in https://github.com/cubiq/ComfyUI_InstantID...