You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When attempting to run tools/train.py, I encounter an error trying to get values from a tensor that appears to be smaller than expected. More specifically, a 3d bounding box variable is expected to contain 9 values when it only contains 7, leading to this error. Printing the tensor yields tensor([27.3678, -2.0306, 0.2165, 1.2211, 0.6933, 1.9455, 0.2747], device='cuda:0'). This error happens after training has 'started', ie during the first loss calculation
Error traceback
Traceback (most recent call last):
File "tools/train.py", line 263, in
main()
File "tools/train.py", line 259, in main
meta=meta)
File "PATHTO/mmdetection3d/mmdet3d/apis/train.py", line 351, in train_model
meta=meta)
File "PATHTO/mmdetection3d/mmdet3d/apis/train.py", line 319, in train_detector
runner.run(data_loaders, cfg.workflow)
File "PATHTO/mmcv/mmcv/runner/epoch_based_runner.py", line 127, in run
epoch_runner(data_loaders[i], **kwargs)
File "PATHTO/mmcv/mmcv/runner/epoch_based_runner.py", line 50, in train
self.run_iter(data_batch, train_mode=True, **kwargs)
File "PATHTO/mmcv/mmcv/runner/epoch_based_runner.py", line 30, in run_iter
**kwargs)
File "PATHTO/mmcv/mmcv/parallel/data_parallel.py", line 75, in train_step
return self.module.train_step(*inputs[0], **kwargs[0])
File "PATHTO/.conda/envs/open-mmlab/lib/python3.7/site-packages/mmdet/models/detectors/base.py", line 248, in train_step
losses = self(**data)
File "PATHTO/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "PATHTO/mmcv/mmcv/runner/fp16_utils.py", line 110, in new_func
return old_func(*args, **kwargs)
File "PATHTO/mmdetection3d/mmdet3d/models/detectors/base.py", line 60, in forward
return self.forward_train(**kwargs)
File "PATHTO/mmdetection3d/mmdet3d/models/detectors/mvx_two_stage.py", line 279, in forward_train
gt_bboxes_ignore)
File "PATHTO/mmdetection3d/mmdet3d/models/detectors/centerpoint.py", line 73, in forward_pts_train
losses = self.pts_bbox_head.loss(*loss_inputs)
File "PATHTO/mmcv/mmcv/runner/fp16_utils.py", line 198, in new_func
return old_func(*args, **kwargs)
File "PATHTO/mmdetection3d/mmdet3d/models/dense_heads/centerpoint_head.py", line 586, in loss
gt_bboxes_3d, gt_labels_3d)
File "PATHTO/mmdetection3d/mmdet3d/models/dense_heads/centerpoint_head.py", line 418, in get_targets
self.get_targets_single, gt_bboxes_3d, gt_labels_3d)
File "PATHTO/.conda/envs/open-mmlab/lib/python3.7/site-packages/mmdet/core/utils/misc.py", line 30, in multi_apply
return tuple(map(list, zip(*map_results)))
File "PATHTO/mmdetection3d/mmdet3d/models/dense_heads/centerpoint_head.py", line 552, in get_targets_single
vx, vy = task_boxes[idx][k][7:]
ValueError: not enough values to unpack (expected 2, got 0)
The text was updated successfully, but these errors were encountered:
The current version of centerpoint may need some modifications to be compatible with KITTI training. You can refer to this PR for more information and experience.
Describe the bug
When attempting to run tools/train.py, I encounter an error trying to get values from a tensor that appears to be smaller than expected. More specifically, a 3d bounding box variable is expected to contain 9 values when it only contains 7, leading to this error. Printing the tensor yields
tensor([27.3678, -2.0306, 0.2165, 1.2211, 0.6933, 1.9455, 0.2747], device='cuda:0')
. This error happens after training has 'started', ie during the first loss calculationReproduction
Environment
python mmdet3d/utils/collect_env.py
to collect necessary environment information and paste it here.$PATH
,$LD_LIBRARY_PATH
,$PYTHONPATH
, etc.)Error traceback
Traceback (most recent call last):
File "tools/train.py", line 263, in
main()
File "tools/train.py", line 259, in main
meta=meta)
File "PATHTO/mmdetection3d/mmdet3d/apis/train.py", line 351, in train_model
meta=meta)
File "PATHTO/mmdetection3d/mmdet3d/apis/train.py", line 319, in train_detector
runner.run(data_loaders, cfg.workflow)
File "PATHTO/mmcv/mmcv/runner/epoch_based_runner.py", line 127, in run
epoch_runner(data_loaders[i], **kwargs)
File "PATHTO/mmcv/mmcv/runner/epoch_based_runner.py", line 50, in train
self.run_iter(data_batch, train_mode=True, **kwargs)
File "PATHTO/mmcv/mmcv/runner/epoch_based_runner.py", line 30, in run_iter
**kwargs)
File "PATHTO/mmcv/mmcv/parallel/data_parallel.py", line 75, in train_step
return self.module.train_step(*inputs[0], **kwargs[0])
File "PATHTO/.conda/envs/open-mmlab/lib/python3.7/site-packages/mmdet/models/detectors/base.py", line 248, in train_step
losses = self(**data)
File "PATHTO/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "PATHTO/mmcv/mmcv/runner/fp16_utils.py", line 110, in new_func
return old_func(*args, **kwargs)
File "PATHTO/mmdetection3d/mmdet3d/models/detectors/base.py", line 60, in forward
return self.forward_train(**kwargs)
File "PATHTO/mmdetection3d/mmdet3d/models/detectors/mvx_two_stage.py", line 279, in forward_train
gt_bboxes_ignore)
File "PATHTO/mmdetection3d/mmdet3d/models/detectors/centerpoint.py", line 73, in forward_pts_train
losses = self.pts_bbox_head.loss(*loss_inputs)
File "PATHTO/mmcv/mmcv/runner/fp16_utils.py", line 198, in new_func
return old_func(*args, **kwargs)
File "PATHTO/mmdetection3d/mmdet3d/models/dense_heads/centerpoint_head.py", line 586, in loss
gt_bboxes_3d, gt_labels_3d)
File "PATHTO/mmdetection3d/mmdet3d/models/dense_heads/centerpoint_head.py", line 418, in get_targets
self.get_targets_single, gt_bboxes_3d, gt_labels_3d)
File "PATHTO/.conda/envs/open-mmlab/lib/python3.7/site-packages/mmdet/core/utils/misc.py", line 30, in multi_apply
return tuple(map(list, zip(*map_results)))
File "PATHTO/mmdetection3d/mmdet3d/models/dense_heads/centerpoint_head.py", line 552, in get_targets_single
vx, vy = task_boxes[idx][k][7:]
ValueError: not enough values to unpack (expected 2, got 0)
The text was updated successfully, but these errors were encountered: