cubiq / ComfyUI_InstantID

Apache License 2.0
1.26k stars 71 forks source link

Getting : AttributeError: 'NoneType' object has no attribute 'copy' #49

Closed gunnarsal closed 8 months ago

gunnarsal commented 8 months ago

What does this mean?

File "D:\AI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\AI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\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 "D:\AI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "D:\AI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_InstantID\InstantID.py", line 522, in apply_instantid c_net = control_net.copy().set_cond_hint(face_kps.movedim(-1,1), cn_strength, (start_at, end_at))

SunixLiu commented 8 months ago

I got same issue, and figured out it's due to wrong controlnet model, once I changed it to diffusion_pytorch_model.safetensors, then it's working

gunnarsal commented 8 months ago

I got same issue, and figured out it's due to wrong controlnet model, once I changed it to diffusion_pytorch_model.safetensors, then it's working

Nice thanks! Got past this error BUT now have a new one, that has been noted here but for some reason it is closed without giving any reason: https://github.com/cubiq/ComfyUI_InstantID/issues/29

gunnarsal commented 8 months ago

Ok, this now was an issue with checkpoint. it was an SDXL one but did not work it seems. switched checkpoint and then fine.

potatoker commented 7 months ago

I already use diffusion_pytorch_model.safetensors, same error still here

potatoker commented 7 months ago

Ok, this now was an issue with checkpoint. it was an SDXL one but did not work it seems. switched checkpoint and then fine.

I'm confused, you change sdxl checkpoint to a sd one, then everything is fine?