Traceback (most recent call last):


 "tools/train_net.py", line 163, in <module>

args=(args,),


 "/home/ashwin/Desktop/Projects/detectron2/detectron2/engine/launch.py", line 52, in launch

main_func(*args)


 "tools/train_net.py", line 151, in main

return trainer.train()


 "/home/ashwin/Desktop/Projects/detectron2/detectron2/engine/defaults.py", line 380, in train

super().train(self.start_iter, self.max_iter)


 "/home/ashwin/Desktop/Projects/detectron2/detectron2/engine/train_loop.py", line 132, in train

self.run_step()


 "/home/ashwin/Desktop/Projects/detectron2/detectron2/engine/train_loop.py", line 215, in run_step

loss_dict = self.model(data)


 "/home/ashwin/anaconda3/envs/detectron2/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in __call__

result = self.forward(*input, **kwargs)


 "/home/ashwin/Desktop/Projects/detectron2/detectron2/modeling/meta_arch/panoptic_fpn.py", line 94, in forward

gt_instances = [x["instances"].to(self.device) for x in batched_inputs]


 "/home/ashwin/Desktop/Projects/detectron2/detectron2/modeling/meta_arch/panoptic_fpn.py", line 94, in <listcomp>

gt_instances = [x["instances"].to(self.device) for x in batched_inputs]


 "/home/ashwin/Desktop/Projects/detectron2/detectron2/structures/instances.py", line 113, in to

v = v.to(device)


 "/home/ashwin/Desktop/Projects/detectron2/detectron2/structures/boxes.py", line 162, in to

return Boxes(self.tensor.to(device))
RuntimeError: CUDA error: device-side assert triggered

Traceback (most recent call last):


 "./experiments/train_voc.py/test.py", line 124, in <module>

test(args)


 "./experiments/train_voc.py/test.py", line 107, in test

correct, labeled, inter, union = eval_batch(image, dst, evaluator, args.eval)


 "./experiments/train_voc.py/test.py", line 75, in eval_batch

outputs = evaluator.parallel_forward(image)


 "/home/oujie/anaconda3/envs/pytorch-master/lib/python3.7/site-packages/encoding/models/base.py", line 101, in parallel_forward

outputs = self.parallel_apply(replicas, inputs, kwargs)


 "/home/oujie/anaconda3/envs/pytorch-master/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 133, in parallel_apply

return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])


 "/home/oujie/anaconda3/envs/pytorch-master/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 77, in parallel_apply

raise output


 "/home/oujie/anaconda3/envs/pytorch-master/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 53, in _worker

output = module(*input, **kwargs)


 "/home/oujie/anaconda3/envs/pytorch-master/lib/python3.7/site-packages/torch/nn/modules/module.py", line 477, in __call__

result = self.forward(*input, **kwargs)


 "/home/oujie/anaconda3/envs/pytorch-master/lib/python3.7/site-packages/encoding/models/base.py", line 168, in forward

scores += score
RuntimeError: The size of tensor a (21) must match the size of tensor b (150) at non-singleton dimension 1
