Gym: Is it possible to save video files and results without rendering during training?

Created on 3 Jan 2017  路  4Comments  路  Source: openai/gym

Hello, I am trying to save the video files and results (so I can upload them afterwards) without rendering during training, because I am using a server and I cannot install xvfb). Weird thing is that it only saves de video files it I set video_callable=False in the call wrappers.Monitor() (while testing on my laptop). Otherwise it doesn't rise up any error, but it doesn't write the video files nor the result files, so I can't upload them.

How can get the video and result files without rendering during training?

Thanks

Most helpful comment

@hipoglucido May you tell me how to write prgrams to save video of gym? Thank you~

All 4 comments

You need xvfb in order to generate movies. The movies are made by rendering each frame (using OpenGL or X11 drawing commands, depending on the enviroment), then capturing the frame buffer and piping it to ffmpeg.

Does apt-get install xvfb not work? What OS are you on?

In fact, it's entirely up to environment to process render('rgb_array'). You can create your own environment that renders into numpy array without X. But most of the existing environments require X or OpenGL. So it's not a bug or limitation in gym, it's just a easiest way to implement environments.

Thanks, it was just that I was using a Debian remote server wherein I had no super user acces, but I asked the admin and he installed xvfb for me :)

@hipoglucido May you tell me how to write prgrams to save video of gym? Thank you~

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RuofanKong picture RuofanKong  路  4Comments

mdavis-xyz picture mdavis-xyz  路  3Comments

tylerlekang picture tylerlekang  路  3Comments

david8373 picture david8373  路  4Comments

tornadomeet picture tornadomeet  路  4Comments