Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

torch.hub example is broken #195

Open
NicolasHug opened this issue Jan 7, 2023 · 2 comments
Open

torch.hub example is broken #195

NicolasHug opened this issue Jan 7, 2023 · 2 comments

Comments

@NicolasHug
Copy link

Hi all,

We're the maintainers of torch.hub and it looks like executing the code in the MiDaS example fails with the following error:

QObject::moveToThread: Current thread (0x5f956b80) is not the object's thread (0x601f7590).
E           Cannot move to target thread (0x5f956b80)
E           
E           qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/circleci/miniconda3/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found.
E           This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
E           
E           Available platform plugins are: xcb, eglfs, minimal, minimalegl, offscreen, vnc, webgl.

You can find more details about the execution here

Would you mind submitting a fix either in your own repo if relevant, or directly to the MiDaS torchhub file? Thank you!

(I suspect that the problem may be that Qt is required to run the model somehow, while our CI job is headless so the X server isn't available - I could be completely wrong though).

@thias15
Copy link
Contributor

thias15 commented Jan 17, 2023

Hi @NicolasHug. We will look into it.

@thias15
Copy link
Contributor

thias15 commented Jan 17, 2023

Both the Colab notebook and hugging face demo seem to be working. How can we reproduce the error above? It might be worthwhile to update the colab notebook and documentation to show how all the new models (MiDaS v3.1) can be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants