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 OOTDGenerate: Given groups=1, weight of size [320, 8, 3, 3], expected input[2, 4, 128, 96] to have 8 channels, but got 4 channels instead #209

Open
hooray4boobies opened this issue Sep 6, 2024 · 3 comments

Comments

@hooray4boobies
Copy link

Error occurred when executing OOTDGenerate:

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

File "D:\4.4\ComfyUI\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\4.4\ComfyUI\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:\4.4\ComfyUI\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\4.4\ComfyUI\ComfyUI\custom_nodes\ComfyUI-OOTDiffusion_init_.py", line 170, in generate
images = pipe(
^^^^^
File "D:\4.4\ComfyUI\ComfyUI\custom_nodes\ComfyUI-OOTDiffusion\inference_ootd.py", line 152, in call
images = self.pipe(
^^^^^^^^^^
File "D:\4.4\ComfyUI\python_embeded\Lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "D:\4.4\ComfyUI\ComfyUI\custom_nodes\ComfyUI-OOTDiffusion\pipelines_ootd\pipeline_ootd.py", line 354, in call
_, spatial_attn_outputs = self.unet_garm(
^^^^^^^^^^^^^^^
File "D:\4.4\ComfyUI\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1511, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\4.4\ComfyUI\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1520, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\4.4\ComfyUI\ComfyUI\custom_nodes\ComfyUI-OOTDiffusion\pipelines_ootd\unet_garm_2d_condition.py", line 1036, in forward
sample = self.conv_in(sample)
^^^^^^^^^^^^^^^^^^^^
File "D:\4.4\ComfyUI\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1511, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\4.4\ComfyUI\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1520, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\4.4\ComfyUI\python_embeded\Lib\site-packages\torch\nn\modules\conv.py", line 460, in forward
return self._conv_forward(input, self.weight, self.bias)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\4.4\ComfyUI\python_embeded\Lib\site-packages\torch\nn\modules\conv.py", line 456, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@shaoke317
Copy link

请问你解决这个错误了吗,我遇到了和你一样的错误

@hooray4boobies
Copy link
Author

hooray4boobies commented Dec 20, 2024 via email

@shaoke317
Copy link

并没有😭,你也遇到了这样的错误啊,希望能及时联系解决

---Original--- From: @.> Date: Fri, Dec 20, 2024 20:31 PM To: @.>; Cc: @.@.>; Subject: Re: [levihsu/OOTDiffusion] Error occurred when executingOOTDGenerate: Given groups=1, weight of size [320, 8, 3, 3], expectedinput[2, 4, 128, 96] to have 8 channels, but got 4 channels instead (Issue#209) 请问你解决这个错误了吗,我遇到了和你一样的错误 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

我打算用这个作者发布的线上软件Try out OOTDiffusion来进行测试,直接放图片就可以生成。

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