Deep-Reinforcement-Learning-Algorithms-with-PyTorch icon indicating copy to clipboard operation
Deep-Reinforcement-Learning-Algorithms-with-PyTorch copied to clipboard

how to visualize the enviroment

Open weixiang-95 opened this issue 6 years ago • 3 comments
trafficstars

Hello! I am wondering where i should put env.render() to visualize the environment?Thank you!

weixiang-95 avatar Oct 24 '19 03:10 weixiang-95

for the DQN agent

weixiang-95 avatar Oct 24 '19 03:10 weixiang-95

yes, same question. I find the answer: add the following line in agents/Base_Agent.py line 190

        self.config.environment.render()

liuxiaotong15 avatar Apr 06 '20 07:04 liuxiaotong15

yes, same question. I find the answer: add the following line in agents/Base_Agent.py line 190

        self.config.environment.render()

But this actually renders one frame per episode, not each step. To do so, that line of code should be put in step() in each Agent Class. Still trying it out...

halixness avatar Aug 02 '20 15:08 halixness