weixin_45075999 2023-09-20 18:29 采纳率: 50%
浏览 13
已结题

在运行基于 segment-anything 的标注工具SAM-TOOL 报错

在运行基于 segment-anything 的标注工具SAM-TOOL 报错

Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/home/anaconda3/envs/sam/bin/platforms" ...
loaded library "/home/anaconda3/envs/sam/lib/python3.9/site-packages/cv2/qt/plugins/platforms/libqxcb.so"
QObject::moveToThread: Current thread (0x55a94757fe30) is not the object's thread (0x55a949293d70).
Cannot move to target thread (0x55a94757fe30)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/anaconda3/envs/sam/lib/python3.9/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.


  • 写回答

3条回答 默认 最新

  • weixin_45075999 2023-09-21 13:34
    关注

    已解决,opencv-python 和 PyQt5 版本冲突,卸载 opencv-python
    安装 opencv-python-headless

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 9月29日
  • 已采纳回答 9月21日
  • 创建了问题 9月20日