edgeyolo icon indicating copy to clipboard operation
edgeyolo copied to clipboard

cannot connect to X server BUG

Open acheng777 opened this issue 2 years ago • 1 comments

root@autodl-container-809011af9e-2908fc6e:~/edgeyolo# python detect.py --weights ./weights/edgeyolo_coco.pth --source test.avi --fp16 2023-09-01 18:00:05.169 | INFO | edgeyolo.models:init:50 - loading models from weight /root/edgeyolo/weights/edgeyolo_coco.pth Params: 41.23M, Gflops: 126.71 Reparameterizing models... After re-parameterization: Params: 40.51M, Gflops: 124.70 574.5ms average:574.5ms: cannot connect to X server 以上是我运行代码时出现的问题,博主方便解答一下吗?

acheng777 avatar Sep 01 '23 10:09 acheng777

你远程命令行登录的吧,detect.py里面有cv2.imshow,没有图形界面是会报这个错误的

LSH9832 avatar Dec 06 '23 05:12 LSH9832