Traceback (most recent call last):
File "D:\Pycharm\PyCharm 2020.2.5\plugins\python\helpers\pydev\pydevd.py", line 1448, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "D:\Pycharm\PyCharm 2020.2.5\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/wz/Desktop/Framework to practice/多尺度Demo/demo.py", line 269, in <module>
summary(net, (3, 224, 224))
File "D:\anaconda3\envs\pytorch\lib\site-packages\torchsummary\torchsummary.py", line 72, in summary
model(*x)
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "C:/Users/wz/Desktop/Framework to practice/多尺度Demo/demo.py", line 228, in forward
out = self.MSB3d(out)
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1148, in _call_impl
result = forward_call(*input, **kwargs)
File "C:/Users/wz/Desktop/Framework to practice/多尺度Demo/demo.py", line 135, in forward
self.branch3x3dbl_3b(branch3x3dbl),
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1148, in _call_impl
result = forward_call(*input, **kwargs)
File "C:/Users/wz/Desktop/Framework to practice/多尺度Demo/demo.py", line 42, in forward
x = self.conv(x)
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\module.py", line 1148, in _call_impl
result = forward_call(*input, **kwargs)
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\conv.py", line 457, in forward
return self._conv_forward(input, self.weight, self.bias)
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\conv.py", line 453, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,
RuntimeError: Given groups=1, weight of size [256, 256, 3, 1], expected input[2, 128, 14, 14] to have 256 channels, but got 128 channels instead