weigao95 / surfelwarp

SurfelWarp: Efficient Non-Volumetric Dynamic Reconstruction
https://sites.google.com/view/surfelwarp/home
BSD 3-Clause "New" or "Revised" License
279 stars 71 forks source link

Headless mode #65

Closed yuehaowang closed 3 years ago

yuehaowang commented 3 years ago

Dear authors,

Thanks for providing such an awesome project. I would like to run surfelwarp app on my server without GUI and display (just want to perform reconstruction and output results to files). However, the code will always run glfw and OpenGL, which leads to runtime errors on my server. I am wondering if there is any workaround to disable glfw and OpenGL, i.e., run the reconstruction program in a headless mode?

Thank you very much in advance for any help.

weigao95 commented 3 years ago

OpenGL plays a very important role in reconstruction and it is almost impossible to remove it. See https://github.com/weigao95/surfelwarp/issues/16#issuecomment-554322225.

shaisung commented 2 years ago

There's a GLFW branch with headless EGL support:

https://github.com/glfw/glfw/pull/1608

A bit hacky but it did the trick for me.

There's also various methods of setting up a docker with VirtualGL, I haven't been able to set that up yet but it might work as well. Examples: https://github.com/ffeldhaus/docker-xpra-html5-gpu-minimal https://github.com/dcommander/virtualgl_docker_examples