vchoutas / smplify-x

Expressive Body Capture: 3D Hands, Face, and Body from a Single Image
https://smpl-x.is.tue.mpg.de/
Other
1.78k stars 341 forks source link

pyglet.canvas.xlib.NoSuchDisplayException Error in Colab #112

Open sarathchandnekuri opened 4 years ago

sarathchandnekuri commented 4 years ago

I got this error while running main.py in google colab. Please anyone help me with this.

|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

Processing: data/images/man.jpg Found Trained Model: vposer/snapshots/TR00_E096.pt Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/usr/lib/python3.6/threading.py", line 864, in run self._target(*self._args, *self._kwargs) File "/usr/local/lib/python3.6/dist-packages/pyrender/viewer.py", line 997, in _init_and_start_app height=self._viewport_size[1]) File "/usr/local/lib/python3.6/dist-packages/pyglet/window/xlib/init.py", line 165, in init super(XlibWindow, self).init(args, **kwargs) File "/usr/local/lib/python3.6/dist-packages/pyglet/window/init.py", line 570, in init display = pyglet.canvas.get_display() File "/usr/local/lib/python3.6/dist-packages/pyglet/canvas/init.py", line 94, in get_display return Display() File "/usr/local/lib/python3.6/dist-packages/pyglet/canvas/xlib.py", line 123, in init raise NoSuchDisplayException('Cannot connect to "%s"' % name) pyglet.canvas.xlib.NoSuchDisplayException: Cannot connect to "None"

|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

MotiBaadror commented 3 years ago

Hi @Sarath-Chand, Did you find any solution of it

Anirudh257 commented 3 years ago

It can't run in Google colab. You need to run it on your system.

Anirudh257 commented 3 years ago

@MotiBaadror @Sarath-Chand I have written a code https://github.com/Anirudh257/Render-SMPL-X-mesh-on-system-without-GPU that can run the overlaying part on your system.