ashawkey / stable-dreamfusion

Text-to-3D & Image-to-3D & Mesh Exportation with NeRF + Diffusion.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[F glutil.cpp:338] eglInitialize() failed

AmanKishore opened this issue · comments

Description

Getting this error [F glutil.cpp:338] eglInitialize() failed when running with latest commit

Steps to Reproduce

Run latest code with Dockerfile

Expected Behavior

This is during python3 main.py --workspace trial -O2 --test --save_mesh

Environment

Ubuntu 20.04

commented

This might due to the problem of headless rendering on a server.
I found a solution on sicxu/Deep3DFaceRecon_pytorch#2 and it works.

export PYOPENGL_PLATFORM=egl
cp docker/10_nvidia.json /usr/share/glvnd/egl_vendor.d/10_nvidia.json

where docker/10_nvidia.json can be downloaded from https://github.com/nv-tlabs/GET3D/blob/master/docker/10_nvidia.json

commented

Thanks @ybbbbt for the solution!
I have also changed nvdiffrast's default backend to Cuda in the latest commit, which should work without OpenGL.

Thank you!

Seems to result in a blob for the output, not sure if related