nv-tlabs / GET3D

Other
4.17k stars 374 forks source link

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

Closed tcabezon closed 1 year ago

tcabezon commented 1 year ago

I get this comment when I try to run inference on the model. I even get the error when I run the 'GET3D-pretrain-inference.ipynb' google colab that is provided as example.

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

tcabezon commented 1 year ago
Screen Shot 2023-04-05 at 18 55 52
buptzh111 commented 1 year ago

Hi @tcabezon , I've met the same problem, and I solved it by replacing "dr.RasterizeGLContext" with "dr.RasterizeCudaContext" when doing inference. You can find it in training/networks_get3d.py, line 385, and uni_rep/render/neural_render.py, line 59.

SteveJunGao commented 1 year ago

Thank you @buptzh111 for providing the fix!

Yes, changing from GL to Cuda in Nvdiffrast would fix the problem

Walterkd commented 1 year ago

Works for me too!

Remember12344 commented 7 months ago

Thank you @buptzh111 for providing the fix!

Yes, changing from GL to Cuda in Nvdiffrast would fix the problem

Thank you @buptzh111 for providing the fix!

Yes, changing from GL to Cuda in Nvdiffrast would fix the problem

does it mean i need to change all the GL to cuda in Nvdiffrast file?