Closed dyl25984 closed 4 years ago
Which version of pytorch do you use? Did you make modifications to the code?
torch1.0.0,I only replace the torch.backends.cudnn.enabled with False
I guess it's related to pytorch version, could you try 1.1.0 or 1.2.0?
Maybe it's related to the machine.I try it again on my own computer instead of remote server. And it works.Both are tried in torch 1.0.
Epoch: 1 [2020-08-31 11:13:22,017] Traceback (most recent call last): File "train.py", line 241, in
main()
File "train.py", line 229, in main
train(epoch)
File "train.py", line 139, in train
for batch_idx, batch in enumerate(train_loader):
IndexError: index 14 is out of bounds for axis 0 with size 2
在pascal_voc数据集上训练时出现维度问题