FaceFormer icon indicating copy to clipboard operation
FaceFormer copied to clipboard

Pyrender GPU rendering egl

Open raymondsim opened this issue 1 year ago • 2 comments

Hi, is there any ways that we can enable egl offscreen rendering in the demo render code? I used # os.environ['PYOPENGL_PLATFORM'] = 'egl'

but got the following error message,

NotImplementedError: Platform does not define a GLUT font retrieval function

I noticed that VOCA used egl for rendering and when I used the virtual environment for voca to run faceformer, it still gives the same error message.

raymondsim avatar Aug 26 '22 01:08 raymondsim

Hi, is there any ways that we can enable egl offscreen rendering in the demo render code? I used # os.environ['PYOPENGL_PLATFORM'] = 'egl'

but got the following error message,

NotImplementedError: Platform does not define a GLUT font retrieval function

I noticed that VOCA used egl for rendering and when I used the virtual environment for voca to run faceformer, it still gives the same error message.

Hi, I met the same problem. This may cause by the miss configuration of egl environment. I don't know how to solve this egl problem yet. As an alternative, I replace the rendering processing of PyRender with PyTorch3D. It' s know 50 times faster then os.environ['PYOPENGL_PLATFORM'] = 'osmesa'`.

bezorro avatar Sep 19 '22 06:09 bezorro

@bezorro Thanks for the suggestions. When I was trying to install pytorch3d in the faceformer conda environment, I faced many version conflicts. Do you mind sharing versions for pytorch, cudatoolkit and pytorch3d? Thanks in advanced ;)

raymondsim avatar Oct 03 '22 04:10 raymondsim