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

RuntimeError: index 1 is out of bounds for dimension 1 with size 1 #597

Open
0Freeebaby opened this issue Mar 8, 2024 · 0 comments
Open

Comments

@0Freeebaby
Copy link

Traceback (most recent call last):
File "D:/PyCharm/ssd.pytorch-master/train2.py", line 247, in
train()
File "D:/PyCharm/ssd.pytorch-master/train2.py", line 170, in train
loss_l, loss_c = criterion(out, targets)
File "D:\PyCharm\hellopytorch\venv\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "D:\PyCharm\ssd.pytorch-master\layers\modules\multibox_loss.py", line 95, in forward
loss_c = log_sum_exp(batch_conf) - batch_conf.gather(1, conf_t.view(-1, 1))
RuntimeError: index 1 is out of bounds for dimension 1 with size 1

how to solve this problem

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