rbgirshick / py-faster-rcnn

Faster R-CNN (Python implementation) -- see https://github.com/ShaoqingRen/faster_rcnn for the official MATLAB version
Other
8.11k stars 4.11k forks source link

no $DISPLAY environment variable #812

Open DanielXu123 opened 6 years ago

DanielXu123 commented 6 years ago

I have this error '_tkinter.TclError: no display name and no $DISPLAY environment variable' when my backend in vi /usr/local/lib/python2.7/dist-packages/matplotlib/mpl-data/matplotlibrc backend: TkAgg

I have met the same problem as mayyphyokhaing did, and I also changed the backend from TkAgg to Agg. While the problem still exits. I'm testing the demo.py on Linux Ubuntu 16.04 Server version. So, there is no display at all.

I changed the code to save the figure in the folder as following , but still got the above problem.

add these 3 lines

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

Will this related to the GPU? The GPU I'm using is Nvidia Tesla V100.

Could anyone give me some help~

DanielXu123 commented 6 years ago

Btw, II trained the Kitti dataset which got the following AP

AP for car = 0.7104 AP for pedestrian = 0.5655

how should I do to increase the AP for pedestarin?

like add more data?

DanielXu123 commented 6 years ago

https://github.com/rbgirshick/py-faster-rcnn/issues/631