-
Notifications
You must be signed in to change notification settings - Fork 22
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
Error when running demo? #7
Comments
@salahzoubi , thanks for your interest. SPECTRE should not be necessary to run the model so you can ignore that error. It seems your error comes from a problem with OpenGL. This can be a tricky part and I can only provide limited assistance there. It appears your platform doesn't have either. What platform are you on? Is it headless? What is the value of the DISPLAY env variable? The code won't be runnable if OpenGL is not set up properly. If you want to bypass opengl, this is doable. The code only uses it for final visualizations. You can try commenting out the import to psbody.mesh and dump the meshes in some other way. |
Thanks for getting back to me so quickly @radekd91. I'm running headless Ubuntu 20.04 (EC2 instance) with no DISPLAY variable (returns nothing since its a remote server). What would be the best course of action in this case? |
This is tricky. There's a few ways forward.
1) somehow install EGL on your headless instance
2) try to use virtual display and non accelerated opengl rendering
3) comment out the rendering import and only dump meshes or find another
way to render, such as using pytorch3D
No way out I'm afraid. OpenGL and headless servers are not always best
friends
…On Tue, Jan 16, 2024, 01:16 Salah Alzubi ***@***.***> wrote:
Thanks for getting back to me so quickly @radekd91
<https://github.com/radekd91>.
I'm running headless Ubuntu 20.04 (EC2 instance) with no DISPLAY variable
(returns nothing since its a remote server). What would be the best course
of action in this case?
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7MKHKEH6N6AQ5XFU67TZLYOZAPZAVCNFSM6AAAAABB3MLLVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTGM2DKNBQHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I see, regarding point (2), would something like -X work? And regarding point (3) which file would I be commenting the rendering import out of? I'm currently just trying to run the demo... Will try installing EGL as a first approach. Thanks a ton for your help! |
So I pushed a small fix, please reinstall the psbody-mesh library from the following repo:
It won't enable OpenGL but at least the psbody-mesh Mesh class will work even if OpenGL fails |
mark |
the correct cmd should be "radekd91" not "radek91" ... |
i confirm what zhangliyun9120 suggested, thanks! run
to install psbody-mesh correctly |
Good catch, guys! Thanks. I pushed a fix |
Followed all the instructions to get the environment running, I've also ran the submodules (optional) script at the start of the instructions. Whenever I try to run the demo, I get the following:
Any suggestions where I may be going wrong?
Thank you!
The text was updated successfully, but these errors were encountered: