LSH9832/edgeyolo

cannot connect to X server BUG

Opened this issue · 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
以上是我运行代码时出现的问题,博主方便解答一下吗?

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