jannerm / trajectory-transformer

Code for the paper "Offline Reinforcement Learning as One Big Sequence Modeling Problem"
https://trajectory-transformer.github.io
MIT License
464 stars 65 forks source link

Found 0 GPUs for rendering. Using device 0. Device id outside of range of available devices.Failed to initialize OpenGL #19

Open fn6767 opened 1 year ago

fn6767 commented 1 year ago

Hello, may I ask if I called make while running plan. py. When make_rendering (), the following error is reported in the "self. viewer=mjc. MjRenderContextOffscreen (self. env. sim)" step: Found 0 GPUs for rendering. Using device 0. Device id outside of range of available devices. Traceback (most recent call last): File "scripts/plan.py", line 41, in renderer = utils.make_renderer(args) File "/home/user/projects/trajectory-transformer/trajectory/utils/rendering.py", line 22, in make_renderer return render_class(args.dataset, observation_dim=observation.size) File "/home/user/projects/trajectory-transformer/trajectory/utils/rendering.py", line 96, in init self.viewer = mjc.MjRenderContextOffscreen(self.env.sim,device_id=-1) File "mjrendercontext.pyx", line 46, in mujoco_py.cymj.MjRenderContext.init File "mjrendercontext.pyx", line 114, in mujoco_py.cymj.MjRenderContext._setup_opengl_context File "opengl_context.pyx", line 130, in mujoco_py.cymj.OffscreenOpenGLContext.init RuntimeError: Failed to initialize OpenGL. How can I solve this problem?