mmtracking icon indicating copy to clipboard operation
mmtracking copied to clipboard

SOT demo failed

Open ioctl-user opened this issue 3 years ago • 11 comments

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)

ioctl-user avatar Apr 24 '21 19:04 ioctl-user

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.

OceanPang avatar Apr 28 '21 11:04 OceanPang

It was docker image built from the Dockerfile in project.

ioctl-user avatar Apr 28 '21 11:04 ioctl-user

And MOT demo works fine.

ioctl-user avatar Apr 28 '21 18:04 ioctl-user

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.

callzhang avatar Jun 28 '21 15:06 callzhang

No, it was local terminal in local Xorg session.

ioctl-user avatar Jun 28 '21 19:06 ioctl-user

Try to modify the opencv version.

Richard-mei avatar Aug 06 '21 09:08 Richard-mei

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?

Hiusam avatar Oct 23 '21 03:10 Hiusam

Have you fixed the problem afterwards?

Unfortunately, no.

ioctl-user avatar Oct 24 '21 17:10 ioctl-user

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!"

junaid340 avatar Feb 05 '22 07:02 junaid340

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?

ioctl-user avatar Feb 05 '22 07:02 ioctl-user

May be it can help someone. Run this 2 commands before training or inference:


export DISPLAY=:0 export QT_QPA_PLATFORM=offscreen

RoyAn2386 avatar Jun 25 '23 08:06 RoyAn2386