You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: conv2d() received an invalid combination of arguments - got (Tensor, Parameter, NoneType, tuple, tuple, tuple, int), but expected one of:
#2
Open
ming200825 opened this issue
Aug 17, 2023
· 5 comments
`(yolov8) PS E:\P\Python\yolov8-plate> python detect_rec_plate.py --detect_model weights/yolov8-lite-t-plate.pt --rec_model weights/plate_rec_color.pth --image_path imgs --output result
yolov8 detect params: 0.59M,rec params: 0.18M
0 imgs\double_yellow.jpg Traceback (most recent call last):
File "detect_rec_plate.py", line 234, in
result_list=det_rec_plate(img,img_ori,detect_model,plate_rec_model)
File "detect_rec_plate.py", line 132, in det_rec_plate
predict = detect_model(img)[0]
File "D:\ProgramData\anaconda3\envs\yolov8\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "E:\P\Python\yolov8-plate\ultralytics\nn\tasks.py", line 45, in forward
return self.predict(x, *args, **kwargs)
File "E:\P\Python\yolov8-plate\ultralytics\nn\tasks.py", line 62, in predict
return self._predict_once(x, profile, visualize)
File "E:\P\Python\yolov8-plate\ultralytics\nn\tasks.py", line 82, in _predict_once
x = m(x) # run
File "D:\ProgramData\anaconda3\envs\yolov8\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "E:\P\Python\yolov8-plate\ultralytics\nn\modules\block.py", line 52, in forward
stem_1_out = self.stem_1(x)
File "D:\ProgramData\anaconda3\envs\yolov8\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "E:\P\Python\yolov8-plate\ultralytics\nn\modules\conv.py", line 38, in forward
return self.act(self.bn(self.conv(x)))
File "D:\ProgramData\anaconda3\envs\yolov8\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "D:\ProgramData\anaconda3\envs\yolov8\lib\site-packages\torch\nn\modules\conv.py", line 463, in forward
return self._conv_forward(input, self.weight, self.bias)
File "D:\ProgramData\anaconda3\envs\yolov8\lib\site-packages\torch\nn\modules\conv.py", line 459, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,
TypeError: conv2d() received an invalid combination of arguments - got (Tensor, Parameter, NoneType, tuple, tuple, tuple, int), but expected one of:
(Tensor input, Tensor weight, Tensor bias, tuple of ints stride, tuple of ints padding, tuple of ints dilation, int groups)
didn't match because some of the arguments have invalid types: (Tensor, Parameter, NoneType, tuple, tuple, tuple, int)
(Tensor input, Tensor weight, Tensor bias, tuple of ints stride, str padding, tuple of ints dilation, int groups)
didn't match because some of the arguments have invalid types: (Tensor, Parameter, NoneType, tuple, tuple, tuple, int)
`
The text was updated successfully, but these errors were encountered:
`(yolov8) PS E:\P\Python\yolov8-plate> python detect_rec_plate.py --detect_model weights/yolov8-lite-t-plate.pt --rec_model weights/plate_rec_color.pth --image_path imgs --output result
yolov8 detect params: 0.59M,rec params: 0.18M
0 imgs\double_yellow.jpg Traceback (most recent call last):
File "detect_rec_plate.py", line 234, in
result_list=det_rec_plate(img,img_ori,detect_model,plate_rec_model)
File "detect_rec_plate.py", line 132, in det_rec_plate
predict = detect_model(img)[0]
File "D:\ProgramData\anaconda3\envs\yolov8\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "E:\P\Python\yolov8-plate\ultralytics\nn\tasks.py", line 45, in forward
return self.predict(x, *args, **kwargs)
File "E:\P\Python\yolov8-plate\ultralytics\nn\tasks.py", line 62, in predict
return self._predict_once(x, profile, visualize)
File "E:\P\Python\yolov8-plate\ultralytics\nn\tasks.py", line 82, in _predict_once
x = m(x) # run
File "D:\ProgramData\anaconda3\envs\yolov8\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "E:\P\Python\yolov8-plate\ultralytics\nn\modules\block.py", line 52, in forward
stem_1_out = self.stem_1(x)
File "D:\ProgramData\anaconda3\envs\yolov8\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "E:\P\Python\yolov8-plate\ultralytics\nn\modules\conv.py", line 38, in forward
return self.act(self.bn(self.conv(x)))
File "D:\ProgramData\anaconda3\envs\yolov8\lib\site-packages\torch\nn\modules\module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "D:\ProgramData\anaconda3\envs\yolov8\lib\site-packages\torch\nn\modules\conv.py", line 463, in forward
return self._conv_forward(input, self.weight, self.bias)
File "D:\ProgramData\anaconda3\envs\yolov8\lib\site-packages\torch\nn\modules\conv.py", line 459, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,
TypeError: conv2d() received an invalid combination of arguments - got (Tensor, Parameter, NoneType, tuple, tuple, tuple, int), but expected one of:
didn't match because some of the arguments have invalid types: (Tensor, Parameter, NoneType, tuple, tuple, tuple, int)
didn't match because some of the arguments have invalid types: (Tensor, Parameter, NoneType, tuple, tuple, tuple, int)
`
The text was updated successfully, but these errors were encountered: