Help!!!
gaoshuai1002 opened this issue · 2 comments
Why this?Thank you. It's urgent.
Error occurred when executing ApplyInstantIDAdvanced:
Error(s) in loading state_dict for Resampler:
size mismatch for proj_in.weight: copying a param with shape torch.Size([1280, 512]) from checkpoint, the shape in current model is torch.Size([1280, 786432]).
File "D:\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\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 "D:\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\ComfyUI\custom_nodes\ComfyUI_InstantID\InstantID.py", line 315, in apply_instantid
self.instantid = InstantID(
File "D:\ComfyUI\custom_nodes\ComfyUI_InstantID\InstantID.py", line 70, in init
self.image_proj_model.load_state_dict(instantid_model["image_proj"])
File "D:\ComfyUI\python\lib\site-packages\torch\nn\modules\module.py", line 2152, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
you are using the wrong model somewhere