在服务器上用matplotlib绘制,由于没有gui,报错:
Traceback (most recent call last):
File "test/refinedet_demo.py", line 120, in <module>
ShowResults(image, image_file, result, labelmap, 0.6, save_fig=args.save_fig)
File "test/refinedet_demo.py", line 38, in ShowResults
plt.clf()
File "/home/niguangyi/anaconda2/lib/python2.7/site-packages/matplotlib/pyplot.py", line 671, in clf
gcf().clf()
File "/home/niguangyi/anaconda2/lib/python2.7/site-packages/matplotlib/pyplot.py", line 586, in gcf
return figure()
File "/home/niguangyi/anaconda2/lib/python2.7/site-packages/matplotlib/pyplot.py", line 533, in figure
**kwargs)
File "/home/niguangyi/anaconda2/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 161, in new_figure_manager
return cls.new_figure_mana