簡體   English   中英

Google Colab 錯誤:無法加載 Qt 平台插件“xcb”

[英]Google Colab error: Could not load the Qt platform plugin "xcb"

我正在嘗試在 google colab 上運行此命令

!python /content/yolov4-custom-functions/detect_video.py --weights ./checkpoints/yolov4-416 --size 416 --model yolov4 --video /content/yolov4-custom-functions/data/video/video.mp4 --output /content/yolov4-custom-functions/detections/results.avi

運行此程序后,我收到此錯誤..

qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.8/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, minimal, offscreen.

Fatal Python error: Aborted

Current thread 0x00007f3ea147f780 (most recent call first):
  File "/content/yolov4-custom-functions/detect_video.py", line 165 in main
  File "/usr/local/lib/python3.8/site-packages/absl/app.py", line 251 in _run_main
  File "/usr/local/lib/python3.8/site-packages/absl/app.py", line 300 in run
  File "/content/yolov4-custom-functions/detect_video.py", line 178 in <module>

我嘗試重新安裝並尋找其他答案,但似乎沒有一個能解決 colab 的這個問題。

請幫幫我。

查看 cv2.imshow() 函數,因為 Google Colab 不允許使用 GUI,因此在此處啟動圖像時可能會出現錯誤。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM