-
Notifications
You must be signed in to change notification settings - Fork 93
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
training error! #2
Comments
hi, |
@talebolano 这个问题解决了,就是没找到标签,label和images要在同一个目录下面,谢谢哈! |
@talebolano 这个可以多块gpu一起训练吗 |
目前还不可以,我会在近期添加多块gpu运行的代码 |
@talebolano |
@lucheng07082221 您好,我在pascal voc数据集上遇到了这个问题,请问您是在那个数据集上测试遇到这个问题,具体是如何解决? |
@Liqing6668 您好,请问下IndexError: index 21 is out of bounds for dimension 3 with size 17这个问题您解决了吗,是怎么解决的?我也遇到同样的问题!非常感谢!!! |
Hi:
我在训练的时候到这里报错:
loss_cls = (1 / nB) * self.ce_loss(pred_cls[mask], torch.argmax(tcls[mask], dim=1))
Traceback (most recent call last):
File "/home/lc/work/yolov3-network-slimming/sparsity_train.py", line 159, in
train()
File "/home/lc/work/yolov3-network-slimming/sparsity_train.py", line 107, in train
loss = model(imgs, targets)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/home/lc/work/yolov3-network-slimming/yolomodel.py", line 365, in forward
x, *losses = self.module_list[i][0](x, targets)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/home/lc/work/yolov3-network-slimming/yolomodel.py", line 147, in forward
print(torch.argmax(tcls[mask], dim=1))
File "/usr/local/lib/python3.6/dist-packages/torch/functional.py", line 374, in argmax
return torch._argmax(input, dim, keepdim)
RuntimeError: Dimension out of range (expected to be in range of [-1, 0], but got 1)
The text was updated successfully, but these errors were encountered: