kijai / ComfyUI-IC-Light

Using IC-LIght models in ComfyUI
Apache License 2.0
666 stars 34 forks source link

Error occurred when executing KSampler: Given groups=1, weight of size [320, 4, 3, 3], expected input[2, 8, 96, 72] to have 4 channels, but got 8 channels instead #45

Open kane1718 opened 2 months ago

kane1718 commented 2 months ago

I also encountered this kind of channel asymmetry problem, how did you solve it?

planb788 commented 2 months ago

The solution is straightforward: use the appropriate model. This error occurs because there are many comfyui plugins with this functionality on the market, and it's possible that you're not using kijai's IC-Light plugin, but someone else's. Alternatively, you might have downloaded a model not by the author lllyasviel, but a modified version, such as a model by the author huchenlei, which could trigger this prompt. To resolve this issue, you need to ensure two things:

  1. The nodes used are from kijai/ComfyUI-IC-Light. 2.The model used is lllyasviel's model.
linfei2023 commented 4 weeks ago

Error occurred when executing KSampler:

Given groups=1, weight of size [320, 4, 3, 3], expected input[2, 8, 64, 64] to have 4 channels, but got 8 channels instead

I'm also in the same situation, I don't know how to deal with it, I'm just waiting for God to help me.

kijai commented 4 weeks ago

Error occurred when executing KSampler:

Given groups=1, weight of size [320, 4, 3, 3], expected input[2, 8, 64, 64] to have 4 channels, but got 8 channels instead

I'm also in the same situation, I don't know how to deal with it, I'm just waiting for God to help me.

Either the model you are using is wrong, or you haven't updated these nodes (or ComfyUI itself) to the latest versions.

linfei2023 commented 4 weeks ago

Error occurred when executing KSampler: Given groups=1, weight of size [320, 4, 3, 3], expected input[2, 8, 64, 64] to have 4 channels, but got 8 channels instead I'm also in the same situation, I don't know how to deal with it, I'm just waiting for God to help me.

Either the model you are using is wrong, or you haven't updated these nodes (or ComfyUI itself) to the latest versions.

The models have all been re-downloaded from https://huggingface.co/lllyasviel/ic-light/tree/main, and comfyui is also the latest.

kijai commented 4 weeks ago

Error occurred when executing KSampler: Given groups=1, weight of size [320, 4, 3, 3], expected input[2, 8, 64, 64] to have 4 channels, but got 8 channels instead I'm also in the same situation, I don't know how to deal with it, I'm just waiting for God to help me.

Either the model you are using is wrong, or you haven't updated these nodes (or ComfyUI itself) to the latest versions.

The models have all been re-downloaded from https://huggingface.co/lllyasviel/ic-light/tree/main, and comfyui is also the latest.

Those are correct models yes. Either your ComfyUI just has not updated properly, or these nodes have not updated properly, or some other custom node is interfering. I had this error too after Comfy update, and this fix works for me and has worked for others too.