EvelynFan / FaceFormer

[CVPR 2022] FaceFormer: Speech-Driven 3D Facial Animation with Transformers
MIT License
778 stars 133 forks source link

Pyrender GPU rendering egl #37

Open raymondsim opened 2 years ago

raymondsim commented 2 years ago

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.

bezorro commented 1 year ago

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'`.

raymondsim commented 1 year ago

@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 ;)