Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyerror: 'bbox' #1690

Open
Chenycan opened this issue Dec 5, 2024 · 2 comments
Open

Keyerror: 'bbox' #1690

Chenycan opened this issue Dec 5, 2024 · 2 comments

Comments

@Chenycan
Copy link

Chenycan commented Dec 5, 2024

Traceback (most recent call last):
File "tools/train.py", line 233, in
main()
File "tools/train.py", line 223, in main
repeat_eval_ckpt(
File "/home/guest/2TLOCAL/CYC/pointpillars_test/OpenPCDet/tools/test.py", line 123, in repeat_eval_ckpt
tb_dict = eval_utils.eval_one_epoch(
File "/home/guest/2TLOCAL/CYC/pointpillars_test/OpenPCDet/tools/eval_utils/eval_utils.py", line 125, in eval_one_epoch
result_str, result_dict = dataset.evaluation(
File "/home/guest/2TLOCAL/CYC/pointpillars_test/OpenPCDet/pcdet/datasets/custom/custom_dataset.py", line 337, in evaluation
ap_result_str, ap_dict = kitti_eval.get_official_eval_result(eval_gt_annos, eval_det_annos, class_names)
File "/home/guest/2TLOCAL/CYC/pointpillars_test/OpenPCDet/pcdet/datasets/custom/kitti_object_eval_python/eval.py", line 673, in get_official_eval_result
mAPbbox, mAPbev, mAP3d, mAPaos, mAPbbox_R40, mAPbev_R40, mAP3d_R40, mAPaos_R40 = do_eval(
File "/home/guest/2TLOCAL/CYC/pointpillars_test/OpenPCDet/pcdet/datasets/custom/kitti_object_eval_python/eval.py", line 589, in do_eval
ret = eval_class(gt_annos, dt_annos, current_classes, difficultys, 0,
File "/home/guest/2TLOCAL/CYC/pointpillars_test/OpenPCDet/pcdet/datasets/custom/kitti_object_eval_python/eval.py", line 475, in eval_class
rets = calculate_iou_partly(dt_annos, gt_annos, metric, num_parts)
File "/home/guest/2TLOCAL/CYC/pointpillars_test/OpenPCDet/pcdet/datasets/custom/kitti_object_eval_python/eval.py", line 361, in calculate_iou_partly
gt_boxes = np.concatenate([a["bbox"] for a in gt_annos_part], 0)
File "/home/guest/2TLOCAL/CYC/pointpillars_test/OpenPCDet/pcdet/datasets/custom/kitti_object_eval_python/eval.py", line 361, in
gt_boxes = np.concatenate([a["bbox"] for a in gt_annos_part], 0)
KeyError: 'bbox'

When i try to train my custom dataset using kitti as a template, i encounter this question. Can anyone solve this problem?

@Chenycan
Copy link
Author

Chenycan commented Dec 9, 2024

please somebody help me!

@Petros626
Copy link

@Chenycan which script you execute? you must provide more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants