tristandeleu / pytorch-maml-rl

Reinforcement Learning with Model-Agnostic Meta-Learning in Pytorch
MIT License
827 stars 158 forks source link

Seeing the agent in action #27

Open Praneethsv opened 5 years ago

Praneethsv commented 5 years ago

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?

tristandeleu commented 5 years ago

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).

magienguyen commented 3 years ago

Hi,

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