Open Kyfafyd opened 2 months ago
Thanks for your interest! Some foundational libraries, such as Osmesa probably cause this issue. You can setup Osmesa by simply running
sudo apt update
sudo apt install llvm-6.0 freeglut3 freeglut3-dev
sudo apt install libosmesa6 libosmesa6-dev
More instructions can be found at https://pyrender.readthedocs.io/en/latest/install/index.html#installmesa.
If it does not work after installing osmesa, you can also try to reinstall pyrender==0.1.33 and pyopengl==3.1.4. If you still have any questions, feel free to contact us.
Thanks for your prompt reply! Unfortunately, I can not install with under root permission. I have tried to reinstall pyrender==0.1.33 and pyopengl==3.1.4, but meeting the same issue. Is there any other solutions?
There are two tips maybe useful: A. Using EGL. Instead of Osmesa, You can also try to use EGL, by replacing this line to
# os.environ['PYOPENGL_PLATFORM'] = 'osmesa'
os.environ['PYOPENGL_PLATFORM'] = 'egl'
B. Using X11 forward. You may try to run commands using X11 forward. For example, you can use MobaXterm to connect your headless server, and run the visualization code on its session.
Hi, @wildavatar @Inso-13 thanks for your great work! I have strictly follow the instructions in the readme to build the environment. When I try to visualize SMPL with
python vis_smpl.py --subject "QV_dRsaJlEU"
, I get the following error: