Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occurred when executing IPAdapterAdvanced:遇到了相同问题,有没有大神可以解决一下 #661

Closed
Raineyly opened this issue Jul 30, 2024 · 3 comments

Comments

@Raineyly
Copy link

          Error occurred when executing IPAdapterAdvanced:

Error(s) in loading state_dict for ImageProjModel:
size mismatch for proj.weight: copying a param with shape torch.Size([8192, 1024]) from checkpoint, the shape in current model is torch.Size([8192, 768]).

File "D:\ComfyUI-aki-v1.1\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\ComfyUI-aki-v1.1\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-aki-v1.1\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\ComfyUI-aki-v1.1\custom_nodes\ComfyUI_IPAdapter_plus\IPAdapterPlus.py", line 592, in apply_ipadapter
return (ipadapter_execute(model.clone(), ipadapter_model, clip_vision, **ipa_args), )
File "D:\ComfyUI-aki-v1.1\custom_nodes\ComfyUI_IPAdapter_plus\IPAdapterPlus.py", line 279, in ipadapter_execute
ipa = IPAdapter(
File "D:\ComfyUI-aki-v1.1\custom_nodes\ComfyUI_IPAdapter_plus\IPAdapterPlus.py", line 70, in init
self.image_proj_model.load_state_dict(ipadapter_model["image_proj"])
File "D:\ComfyUI-aki-v1.1\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(

Originally posted by @brotherlei in #162 (comment)

@cubiq
Copy link
Owner

cubiq commented Jul 30, 2024

this is a checkpoint mismatch. possibly using a wrong controlnet

@cubiq cubiq closed this as completed Jul 30, 2024
@Raineyly
Copy link
Author

这是检查点不匹配。可能使用了错误的控制网

但是我公司的电脑,装的插件都是一样的,不知道是不是家里的电脑多了一个ipadapter plus V2

@Raineyly
Copy link
Author

把ipadapter plus V2卸载了,然后IPadapter plus也卸载了,重新安装IPadapter plus这个节点,问题就解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants