hhhzzyang / Comfyui_Lama

42 stars 13 forks source link

Given groups=1, weight of size [64, 4, 7, 7], expected input[1, 5, 1542, 1158] to have 4 channels, but got 5 channels instead #12

Open lzqggghotmailcom opened 6 months ago

lzqggghotmailcom commented 6 months ago

Error occurred when executing LamaApply:

Given groups=1, weight of size [64, 4, 7, 7], expected input[1, 5, 1542, 1158] to have 4 channels, but got 5 channels instead

File "D:\ComfyUI-ZYDH\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\ComfyUI-ZYDH\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-ZYDH\custom_nodes\deforum-comfy-nodes\deforum_nodes\exec_hijack.py", line 55, in map_node_over_list return orig_exec(obj, input_data_all, func, allow_interrupt) File "D:\ComfyUI-ZYDH\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "D:\ComfyUI-ZYDH\custom_nodes\Comfyui_Lama\LamaRemove.py", line 74, in lama_remove img_inpainted = inpaint_img_with_lama( File "D:\ComfyUI-ZYDH\custom_nodes\Comfyui_Lama\LamaRemove.py", line 42, in inpaint_img_with_lama batch = model(batch) File "D:\ComfyUI-ZYDH\python\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(*args, *kwargs) File "D:\ComfyUI-ZYDH\python\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(args, kwargs) File "D:\ComfyUI-ZYDH\custom_nodes\Comfyui_Lama\saicinpainting\training\trainers\default.py", line 70, in forward batch['predicted_image'] = self.generator(masked_img) File "D:\ComfyUI-ZYDH\python\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(*args, kwargs) File "D:\ComfyUI-ZYDH\python\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(*args, *kwargs) File "D:\ComfyUI-ZYDH\custom_nodes\Comfyui_Lama\saicinpainting\training\modules\ffc.py", line 367, in forward return self.model(input) File "D:\ComfyUI-ZYDH\python\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(args, kwargs) File "D:\ComfyUI-ZYDH\python\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(*args, kwargs) File "D:\ComfyUI-ZYDH\python\lib\site-packages\torch\nn\modules\container.py", line 215, in forward input = module(input) File "D:\ComfyUI-ZYDH\python\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(*args, *kwargs) File "D:\ComfyUI-ZYDH\python\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(args, kwargs) File "D:\ComfyUI-ZYDH\custom_nodes\Comfyui_Lama\saicinpainting\training\modules\ffc.py", line 252, in forward x_l, x_g = self.ffc(x) File "D:\ComfyUI-ZYDH\python\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(*args, kwargs) File "D:\ComfyUI-ZYDH\python\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(*args, kwargs) File "D:\ComfyUI-ZYDH\custom_nodes\Comfyui_Lama\saicinpainting\training\modules\ffc.py", line 221, in forward out_xl = self.convl2l(x_l) + self.convg2l(x_g) g2l_gate File "D:\ComfyUI-ZYDH\python\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl return self._call_impl(args, kwargs) File "D:\ComfyUI-ZYDH\python\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl return forward_call(*args, kwargs) File "D:\ComfyUI-ZYDH\python\lib\site-packages\torch\nn\modules\conv.py", line 460, in forward return self._conv_forward(input, self.weight, self.bias) File "D:\ComfyUI-ZYDH\python\lib\site-packages\torch\nn\modules\conv.py", line 453, in _conv_forward return F.conv2d(F.pad(input, self._reversed_padding_repeated_twice, mode=self.padding_mode),