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

Bug when running voc_eval.py on my own dataset #2074

Closed
wwetnaroh opened this issue Feb 10, 2020 · 2 comments
Closed

Bug when running voc_eval.py on my own dataset #2074

wwetnaroh opened this issue Feb 10, 2020 · 2 comments

Comments

@wwetnaroh
Copy link

multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/gxt/anaconda3/envs/MMDETECTION/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/gxt/anaconda3/envs/MMDETECTION/lib/python3.6/multiprocessing/pool.py", line 47, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "/home/gxt/mmdetection/mmdet/core/evaluation/mean_ap.py", line 203, in tpfp_default
ious = bbox_overlaps(det_bboxes, gt_bboxes)
File "/home/gxt/mmdetection/mmdet/core/evaluation/bbox_overlaps.py", line 38, in bbox_overlaps
area2 = (bboxes2[:, 2] - bboxes2[:, 0] + 1) * (
IndexError: too many indices for array
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/gxt/mmdetection/tools/voc_eval.py", line 48, in
main()
File "/home/gxt/mmdetection/tools/voc_eval.py", line 44, in main
voc_eval(args.result, test_dataset, args.iou_thr, args.nproc)
File "/home/gxt/mmdetection/tools/voc_eval.py", line 24, in voc_eval
nproc=nproc)
File "/home/gxt/mmdetection/mmdet/core/evaluation/mean_ap.py", line 329, in eval_map
[area_ranges for _ in range(num_imgs)]))
File "/home/gxt/anaconda3/envs/MMDETECTION/lib/python3.6/multiprocessing/pool.py", line 274, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "/home/gxt/anaconda3/envs/MMDETECTION/lib/python3.6/multiprocessing/pool.py", line 644, in get
raise self._value
IndexError: too many indices for array

@ZwwWayne
Copy link
Collaborator

Please use the Error Template.

@hellock
Copy link
Member

hellock commented Feb 20, 2020

You may just use the latest version of mmdetection, which removes tools/voc_eval.py and provide a unified tool for testing and evaluating all datasets.

@hellock hellock closed this as completed Feb 20, 2020
FANGAreNotGnu pushed a commit to FANGAreNotGnu/mmdetection that referenced this issue Oct 23, 2023
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

3 participants