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

训练yolov5-acmic时出现这个问题 #151

Open
HappyLiJW opened this issue Dec 22, 2022 · 0 comments
Open

训练yolov5-acmic时出现这个问题 #151

HappyLiJW opened this issue Dec 22, 2022 · 0 comments

Comments

@HappyLiJW
Copy link

File "E:\Python_Project\yolov5-6.2\yolov5-6.2\models\yolo.py", line 105, in _forward_once
x = m(x) # run
File "E:\anaconda\envs\xiaozhai\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "E:\Python_Project\yolov5-6.2\yolov5-6.2\models\common.py", line 1115, in forward
unfold_k = self.unfold(self.pad_att(k_att)).view(b * self.head, self.head_dim,
File "E:\anaconda\envs\xiaozhai\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "E:\anaconda\envs\xiaozhai\lib\site-packages\torch\nn\modules\padding.py", line 174, in forward
return F.pad(input, self.padding, 'reflect')
RuntimeError: Argument #4: Padding size should be less than the corresponding input dimension, but got: padding (512, 512) at dimension 3 of input 4

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

1 participant