p-christ / Deep-Reinforcement-Learning-Algorithms-with-PyTorch

PyTorch implementations of deep reinforcement learning algorithms and environments
MIT License
5.66k stars 1.2k forks source link

Visualize agent #69

Closed sramakrishnan247 closed 3 years ago

sramakrishnan247 commented 3 years ago

Hey @p-christ ,

Thanks for sharing this! Do you have any advice on how I might be able to view the agent learn as a video perhaps? I'm looking at the MountainCarContinuous example. I'm new to RL and OpenAI in general. If you have any suggestions on what I should do in order to get a video of the learned agent, it would help a lot.

Thanks!

sramakrishnan247 commented 3 years ago

self.environment.render() does the job.