araffin / learning-to-drive-in-5-minutes

Implementation of reinforcement learning approach to make a car learn to drive smoothly in minutes
https://towardsdatascience.com/learning-to-drive-smoothly-in-minutes-450a7cdb35f4
MIT License
284 stars 88 forks source link

TypeError: _setup_learn() takes 1 positional argument but 2 were given #24

Closed iamycee closed 4 years ago

iamycee commented 4 years ago

While training with 'ppo2', it gives out the following error:

line 26, in learn
    self._setup_learn(seed)
TypeError: _setup_learn() takes 1 positional argument but 2 were given

The line in the code is:

with TensorboardWriter(self.graph, self.tensorboard_log, tb_log_name) as writer:
            self._setup_learn(seed)
araffin commented 4 years ago

Hello,

Please fill completely the issue template.

EDIT: this is due to a newer stable baselines version, you just need to remove the "seed" argument (cf changelog)