VDIGPKU/M2Det

demo | qt.qpa.xcb: could not connect to display

freshn opened this issue · 1 comments

@qijiezhao When I run python demo.py -c=configs/m2det512_vgg.py -m=weights/m2det512_vgg.pth --show, I got an error relating to Qt.
image

From my perspective, the error message suggests that the Qt platform plugin is found but still cannot be loaded. That is what bothers me most. The 'cv2' in the directory shown in the image is actually the opencv-python package. I try from a Ubuntu18.04 and a Centos7. On both, I get the same bug. By the way, I can run the evaluation code perfectly. Does anyone experience the same situation as me?

I fix it. My issue is actually due to the version of opencv-python. The opencv-python 4.1.025 works perfectly for me.