laermannjan / nip-deeprl-project

Student project in deep reinforcement learning with the OpenAI Gym. We evaluated and analyzed how different model architectures performed as agents in various games.
0 stars 0 forks source link

Capture videos without rendering them. #11

Closed laermannjan closed 7 years ago

laermannjan commented 7 years ago

According to this issue it should be possible to capture videos of our agent without rendering them. They basically use a headless Xserver (Xdummy) which we can just rip off from the gym repo: make docker-build. Just need to install baselines, tensorflow, etc. into the docker image.

monoelh commented 7 years ago

Rendering on a server

If you're trying to render video on a server, you'll need to connect a fake display. The easiest way to do this is by running under xvfb-run (on Ubuntu, install the xvfb package):

.. code:: shell

 xvfb-run -s "-screen 0 1400x900x24" bash
laermannjan commented 7 years ago

Solved!