LSH9832 / edgeyolo

an edge-real-time anchor-free object detector with decent performance
Apache License 2.0
416 stars 55 forks source link

cannot connect to X server BUG #39

Open acheng777 opened 10 months ago

acheng777 commented 10 months ago

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

LSH9832 commented 7 months ago

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