Ssd.pytorch: RuntimeError: cuda runtime error (59) : device-side assert triggered at /pytorch/aten/src/THC/generic/THCTensorScatterGather

Created on 3 Mar 2019  路  1Comment  路  Source: amdegroot/ssd.pytorch

I train the data from myself, and got the following error

Device: GTX 1080
Image size: 9053
Batch Size:32

 /data/RoadDamage/ssd/layers/modules/multibox_loss.py

 in forward(self, predictions, targets)
     98         print(conf_t.view(-1, 1).shape)
     99         print(batch_conf.shape)
--> 100         loss_c = log_sum_exp(batch_conf) - batch_conf.gather(1, conf_t.view(-1, 1))
    101 
    102         # Hard Negative Mining

RuntimeError: cuda runtime error (59) : device-side assert triggered at /pytorch/aten/src/THC/generic/THCTensorScatterGather.cu:67
conf_t      torch.Size([279424, 1])
batch_conf     torch.Size([279424, 8])

could anyone help me to solve the problem, thx

Most helpful comment

change the match function in box_utils.py,if the background index label 0,
then conf = labels[best_truth_idx];
else if not background index, another label 0, conf = labels[best_truth_idx] +1;

>All comments

change the match function in box_utils.py,if the background index label 0,
then conf = labels[best_truth_idx];
else if not background index, another label 0, conf = labels[best_truth_idx] +1;

Was this page helpful?
0 / 5 - 0 ratings

Related issues

oarriaga picture oarriaga  路  4Comments

MakeToast picture MakeToast  路  3Comments

mikejmills picture mikejmills  路  6Comments

squirrel16 picture squirrel16  路  5Comments

yxchng picture yxchng  路  4Comments