Giter Club home page Giter Club logo

mmdetection2.0_visualize's People

Contributors

xiaoyu1233 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mmdetection2.0_visualize's Issues

运行报错,请问如何解决呢?

python tools/voc_eval_visualize.py /root/mmdetection/eval/result.pkl ./configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py
270 270
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 "/root/mmdetection/mmdet/core/evaluation/mean_ap_visualize.py", line 418, in eval_map
plt.savefig('./mmdetection/PR_Curve_each_class.png')
File "/home/lulu/anaconda3/envs/open-mmlabb/lib/python3.7/site-packages/matplotlib/pyplot.py", line 937, in savefig
res = fig.savefig(*args, **kwargs)
File "/home/lulu/anaconda3/envs/open-mmlabb/lib/python3.7/site-packages/matplotlib/figure.py", line 2962, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/home/lulu/anaconda3/envs/open-mmlabb/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 2261, in print_figure
**kwargs)
File "/home/lulu/anaconda3/envs/open-mmlabb/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 1669, in wrapper
return func(*args, **kwargs)
File "/home/lulu/anaconda3/envs/open-mmlabb/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py", line 511, in print_png
dpi=self.figure.dpi, metadata=metadata, pil_kwargs=pil_kwargs)
File "/home/lulu/anaconda3/envs/open-mmlabb/lib/python3.7/site-packages/matplotlib/image.py", line 1616, in imsave
image.save(fname, **pil_kwargs)
File "/home/lulu/anaconda3/envs/open-mmlabb/lib/python3.7/site-packages/PIL/Image.py", line 2169, in save
fp = builtins.open(filename, "w+b")
FileNotFoundError: [Errno 2] No such file or directory: './mmdetection/PR_Curve_each_class.png'

voc_eval_visualize error!

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'>

How to handle with this issue?

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/pan-internship/anaconda3/envs/openmmlab/lib/python3.7/site-packages/mmdet-2.19.0-py3.7.egg/mmdet/core/evaluation/mean_ap_visualize.py", line 357, in eval_map
tp = np.hstack(tp)[:, sort_inds]
IndexError: index 19 is out of bounds for axis 1 with size 19

运行不了

想问一下,这个代码要怎么运行起来呢

visualize.py error

Traceback (most recent call last):
File "tools/visualize.py", line 79, in
x.load_data()
File "tools/visualize.py", line 25, in load_data
print(self.dict_list[259]['mode'])
IndexError: list index out of range

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.