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

Unable to test on a very small dataset (ValueError: need at least one array to concatenate) #95

Open
CharviVitthal opened this issue Oct 6, 2021 · 0 comments

Comments

@CharviVitthal
Copy link

CharviVitthal commented Oct 6, 2021

Hello,
I want to test on a very small dataset.
I reduced my validation dataset size to only 3 point clouds. (The same issue is also present if dataset contains only 1 or 2 point clouds). The folder has the required structure - labels, images, calib, velodyne, velodyne reduced. create_data.py works fine. But test.py gives the following error. When I increase my data size, everything works fine again.
Traceback (most recent call last):
File "test.py", line 209, in
main()
File "test.py", line 204, in main
result = get_official_eval_result(gt_annos, outputs, current_classes=class_names)
File "/home/charvi/SA-SSD/mmdet/core/evaluation/kitti_eval.py", line 839, in get_official_eval_result
gt_annos, dt_annos, current_classes, min_overlaps, compute_aos, difficultys)
File "/home/charvi/SA-SSD/mmdet/core/evaluation/kitti_eval.py", line 708, in do_eval_v2
min_overlaps, compute_aos)
File "/home/charvi/SA-SSD/mmdet/core/evaluation/kitti_eval.py", line 586, in eval_class_v3
rets = calculate_iou_partly(dt_annos, gt_annos, metric, num_parts)
File "/home/charvi/SA-SSD/mmdet/core/evaluation/kitti_eval.py", line 376, in calculate_iou_partly
gt_boxes = np.concatenate([a["bbox"] for a in gt_annos_part], 0)
File "<array_function internals>", line 6, in concatenate
ValueError: need at least one array to concatenate

Any help is appreciated.
(In line 376 "gt_boxes = np.concatenate([a["bbox"] for a in gt_annos_part], 0)" gt_annos_part is coming an empty array)

Best regards,
Charvi

@CharviVitthal CharviVitthal changed the title ValueError: need at least one array to concatenate Unable to test on a very small dataset (ValueError: need at least one array to concatenate) Oct 6, 2021
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

1 participant