tristandeleu/pytorch-maml-rl

Seeing the agent in action

Opened this issue · 2 comments

Hello,
How can one save the agent performance in the form of a video?
For example you have a gif file in this repo at https://github.com/tristandeleu/pytorch-maml-rl/blob/master/_assets/halfcheetahdir.gif

Can we use gym's Monitor to record the performance during testing/training?

Hi! Sorry for the late reply.

In order to get a video, I indeed used the Monitor wrapper from Gym (in a separate custom script). I had an issue with the camera which was not tracking (on HalfCheetah at least), so I had to tweak some things inside the environment, but I think now Gym fixed the tracking when rendering (in its latest version).

Hi,

Could you share your script for getting a video with Gym Monitor?