Traceback (most recent call last):


 "rpn_train.py", line 113, in <module>

inference_on_dataset(trainer.model, val_loader, evaluator)


 "/home/samjith/anaconda3/envs/detectron2/lib/python3.8/site-packages/detectron2/evaluation/evaluator.py", line 159, in inference_on_dataset

results = evaluator.evaluate()


 "/home/samjith/anaconda3/envs/detectron2/lib/python3.8/site-packages/detectron2/evaluation/coco_evaluation.py", line 136, in evaluate

self._eval_box_proposals()


 "/home/samjith/anaconda3/envs/detectron2/lib/python3.8/site-packages/detectron2/evaluation/coco_evaluation.py", line 223, in _eval_box_proposals

stats = _evaluate_box_proposals(


 "/home/samjith/anaconda3/envs/detectron2/lib/python3.8/site-packages/detectron2/evaluation/coco_evaluation.py", line 452, in _evaluate_box_proposals

gt_overlaps = torch.cat(gt_overlaps, dim=0)
RuntimeError: There were no tensor arguments to this function (e.g., you passed an empty list of Tensors), but no fallback function is registered for schema aten::_cat.
This usually means that this function requires a non-empty list of Tensors.
Available functions are [CUDATensorId, CPUTensorId, VariableTensorId]

Traceback (most recent call last):


 "C:\Program 
s\JetBrains\PyCharm Community Edition 2020.3.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1477, in _exec

pydev_imports.execfile(file, globals, locals)
# execute the script


 "C:\Program 
s\JetBrains\PyCharm Community Edition 2020.3.1\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile

exec(compile(contents+"\n", file, 'exec'), glob, loc)


 "D:/code_python/har_hailiang/ultralytics_yolov3_mine/train.py", line 445, in <module>

train(hyp)
# train normally


 "D:/code_python/har_hailiang/ultralytics_yolov3_mine/train.py", line 293, in train

pred = model(imgs)


 "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl

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


 "D:\code_python\har_hailiang\ultralytics_yolov3_mine\models.py", line 256, in forward

return self.forward_once(x)


 "D:\code_python\har_hailiang\ultralytics_yolov3_mine\models.py", line 310, in forward_once

x = module(x)


 "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl

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


 "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\container.py", line 117, in forward

input = module(input)


 "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 731, in _call_impl

hook_result = hook(self, input, result)


 "C:\ProgramData\Anaconda3\lib\site-packages\thop\vision\basic_hooks.py", line 31, in count_convNd

m.total_ops += torch.DoubleTensor([int(total_ops)])
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
