MakeItTalk icon indicating copy to clipboard operation
MakeItTalk copied to clipboard

glfw popup

Open qiaofengsheng opened this issue 2 years ago • 1 comments

how to cancel glfw's popup? and how to do off-screen rendering?

qiaofengsheng avatar May 06 '22 08:05 qiaofengsheng

I do it using x11 server.

First you need to install it:

apt-get install -y xvfb x11-utils
pip install pyvirtualdisplay==0.2.* PyOpenGL==3.1.* PyOpenGL-accelerate==3.1.*

And import it in your code:

import pyvirtualdisplay

_display = pyvirtualdisplay.Display(visible=False,  # use False with Xvfb
                                    size=(1400, 900))
_ = _display.start()

Works for me in google colab

Jahysama avatar May 27 '22 10:05 Jahysama