Is there a way to disable video rendering in OpenAI gym while still recording it?
When I use the atari environments and the Monitor
wrapper, the default behavior is to not render the video (the video is still recorded and saved to disk). However in simple environments such as MountainCarContinuous-v0
, CartPole-v0
, Pendulum-v0
, rendering the video is the default behavior and I cannot find how to disable it (I still want to save it to disk).
I am running my jobs on a server and the officially suggested workaround with xvfb
does not work. I saw that a lot of people had problems with it as it clashes with nvidia drivers. The most common solution I found was to reinstall nvidia drivers, which I cannot do as I do not have root access over the server.