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

voc_eval_visualize error! #4

Open
Soodep opened this issue Aug 31, 2021 · 0 comments
Open

voc_eval_visualize error! #4

Soodep opened this issue Aug 31, 2021 · 0 comments

Comments

@Soodep
Copy link

Soodep commented Aug 31, 2021

I get this error, can you please help me out
python tools/voc_eval_visualize.py ./results_final.pkl ./configs/pascal_voc/faster_rcnn_r50_fpn_1x_voc0712.py
200 200
/home/UNT/sd0570/Documents/mmdetection/mmdet/core/evaluation/mean_ap_visualize.py:390: RuntimeWarning: invalid value encountered in true_divide
f_measure = np.mean(2*(top/down))
/home/UNT/sd0570/anaconda3/envs/original_mmdetection/lib/python3.7/site-packages/numpy/core/fromnumeric.py:3420: RuntimeWarning: Mean of empty slice.
out=out, **kwargs)
/home/UNT/sd0570/anaconda3/envs/original_mmdetection/lib/python3.7/site-packages/numpy/core/_methods.py:188: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
Traceback (most recent call last):
File "tools/voc_eval_visualize.py", line 45, in
main()
File "tools/voc_eval_visualize.py", line 41, in main
voc_eval(args.result, test_dataset, args.iou_thr)
File "tools/voc_eval_visualize.py", line 25, in voc_eval
nproc=nproc)
File "/home/UNT/sd0570/Documents/mmdetection/mmdet/core/evaluation/mean_ap_visualize.py", line 397, in eval_map
label_names = get_classes(dataset)
File "/home/UNT/sd0570/Documents/mmdetection/mmdet/core/evaluation/class_names.py", line 122, in get_classes
raise TypeError(f'dataset must a str, but got {type(dataset)}')
TypeError: dataset must a str, but got <class 'tuple'>

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