-
Notifications
You must be signed in to change notification settings - Fork 66
Description
Hi @wenbowen123 thanks for sharing this awesome project, I'm struggling with this error:
`Using pyrenderer
model_path benchmarks/YCBInEOAT/bleach_cleanser/textured_simple.obj
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pyrender/platforms/pyglet_platform.py", line 39, in init_context
width=1, height=1)
File "/usr/local/lib/python3.6/dist-packages/pyglet/window/xlib/init.py", line 171, in init
super(XlibWindow, self).init(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/pyglet/window/init.py", line 591, 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"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "iros20-6d-pose-tracking/predict.py", line 641, in
predictSequenceMyData()
File "iros20-6d-pose-tracking/predict.py", line 567, in predictSequenceMyData
tracker = Tracker(dataset_info, images_mean, images_std,ckpt_dir, trans_normalizer=0.03, rot_normalizer=30*np.pi/180)
File "iros20-6d-pose-tracking/predict.py", line 161, in init
self.renderer = Renderer([dataset_info['models'][0]['obj_path']],self.K,cam_cfg['height'],cam_cfg['width'])
File "/home/iros20-6d-pose-tracking/offscreen_renderer.py", line 69, in init
self.r = pyrender.OffscreenRenderer(self.W, self.H)
File "/usr/local/lib/python3.6/dist-packages/pyrender/offscreen.py", line 31, in init
self._create()
File "/usr/local/lib/python3.6/dist-packages/pyrender/offscreen.py", line 149, in _create
self._platform.init_context()
File "/usr/local/lib/python3.6/dist-packages/pyrender/platforms/pyglet_platform.py", line 45, in init_context
'internal error message was "{}"'.format(e)
ValueError: Failed to initialize Pyglet window with an OpenGL >= 3+ context. If you're logged in via SSH, ensure that you're running your script with vglrun (i.e. VirtualGL). The internal error message was "Cannot connect to "None""
`
How can I solve this error please.
Thanks in advance.