open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
29.44k stars 9.43k forks source link

lugin: Could not load the Qt platform plugin "xcb" #4751

Open super-machine opened 3 years ago

super-machine commented 3 years ago
屏幕快照 2021-03-11 下午3 26 32

this is old questions, but the comments couldn't help me so how could I do? I'm looking forward your reply!

xvjiarui commented 3 years ago

Hi @super-machine You may save it to a local disk instead of showing them. It seems that there is some issue with your display configure.

geekplusaa commented 3 years ago

Use load_from_local loader /opt/ai/projects/github/mmdetection/mmdetection/mmdet/datasets/utils.py:68: UserWarning: "ImageToTensor" pipeline is replaced by "DefaultFormatBundle" for batch inference. It is recommended to manually replace it in the test data pipeline in your config file. 'data pipeline in your config file.', UserWarning) QObject::moveToThread: Current thread (0x5602130af1a0) is not the object's thread (0x5602719df3f0). Cannot move to target thread (0x5602130af1a0)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/wwh/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.

已放弃 (核心已转储)

xjtuchenchao commented 3 years ago

openCV downgrade First, pip uninstall opencv-python Next, pip install opencv-python==4.1.2.30

xiaohai-AI commented 1 year ago

yes, I use the CV2 version=4.8 got the probleam, after downgrade to 4.12 everything is OK Thanks!