Faster-RCNN_TF icon indicating copy to clipboard operation
Faster-RCNN_TF copied to clipboard

tkinter.TclError

Open yang1997yi opened this issue 7 years ago • 2 comments

Detection took 0.639s for 300 object proposals Traceback (most recent call last): File "tools/demo.py", line 136, in demo(sess, net, im_name) File "tools/demo.py", line 73, in demo fig, ax = plt.subplots(figsize=(12, 12)) File "/usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 1202, in subplots fig = figure(**fig_kw) File "/usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 535, in figure **kwargs) File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_tkagg.py", line 81, in new_figure_manager return new_figure_manager_given_figure(num, figure) File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_tkagg.py", line 89, in new_figure_manager_given_figure window = Tk.Tk() File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1818, in init self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: no display name and no $DISPLAY environment variable

what should I do

yang1997yi avatar Jul 20 '17 13:07 yang1997yi

are your problem have solved ?

wingNine avatar Mar 30 '18 13:03 wingNine

import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np

above this two lines must be in the top codes

ShiqiLi047 avatar May 08 '19 07:05 ShiqiLi047