mmtracking
mmtracking copied to clipboard
SOT demo failed
I have built image with docker, installed requirements with pip, tried to run SOT demo:
# python demo/demo_sot.py configs/sot/siamese_rpn/siamese_rpn_r50_1x_lasot.py --input demo/demo.mp4 --device cpu --output output.mp4
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
2021-04-24 19:26:56,652 - mmtrack - INFO - load backbone from: https://download.openmmlab.com/mmtracking/pretrained_weights/sot_resnet50.model
2021-04-24 19:26:56,652 - mmtrack - INFO - Use load_from_http loader
Warning: The model doesn't have classes
Select a ROI and then press SPACE or ENTER button!
Cancel the selection process by pressing c button!
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/opt/conda/lib/python3.7/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.
Aborted (core dumped)
According to your log, it seems that the Qt platform plugin on your machine has some problems.
Please have a check.
This application failed to start because no Qt platform plugin could be initialized.
It was docker image built from the Dockerfile in project.
And MOT demo works fine.
If you are using SSH to connect to the server, it could be that the server has no $DISPLAY set and no display is connected. Solve this by using X Forwarding in SSH connection.
No, it was local terminal in local Xorg session.
Try to modify the opencv version.
It was docker image built from the Dockerfile in project.
I have the same problem as you. I am using Docker. Have you fixed the problem afterwards?
Have you fixed the problem afterwards?
Unfortunately, no.
It was docker image built from the Dockerfile in project.
I have the same problem as you. I am using Docker. Have you fixed the problem afterwards?
As Docker is a command line interface, and don't have any type of display interface. The issue states itself "could not connect to a display!"
I have the same problem as you. I am using Docker. Have you fixed the problem afterwards?
As Docker is a command line interface, and don't have any type of display interface. The issue states itself "could not connect to a display!"
I was using option "--output output.mp4" . Shouldn't it work without display?
May be it can help someone. Run this 2 commands before training or inference: