D4RL icon indicating copy to clipboard operation
D4RL copied to clipboard

How can I visualize the action?

Open csufangyu opened this issue 4 years ago • 4 comments

Hi, I want to visualize the action after training, but I notice the "d4rl/scripts/visualize_dataset.py" writed 'Only MuJoCo-based environments can be visualized', If I want to visulize 'kitchen-complete-v0',how can I do ? thanks very much!

csufangyu avatar Nov 25 '20 00:11 csufangyu

I try to change it ,and I change the code in d4rl/d4rl/kitchen/kitchen_envs.py " def render(self, mode='human'): return super(KitchenTaskRelaxV1, self).render()"

csufangyu avatar Nov 25 '20 01:11 csufangyu

@csufangyu Does it work? In my case, gladLoadGL Error happen after I changed like you.

CUN-bjy avatar Jan 05 '23 14:01 CUN-bjy

It is because of the attempt to use GLFW as default. You can try to set this if you are running your code on a headless server: MUJOCO_GL="egl". You can look at the Rendering headline at https://github.com/deepmind/dm_control for more details and requirements to use EGL.

mertalbaba avatar Mar 29 '23 10:03 mertalbaba

I try to use wrapper to modify render function, but it shows "KitchenTaskRelaxV1" is not defined

ZiningFan00 avatar Apr 04 '23 00:04 ZiningFan00