From 54d5eb622a54750b226ddfebf6b23092ff3cae96 Mon Sep 17 00:00:00 2001 From: ViktorM Date: Tue, 1 Oct 2024 15:43:45 -0700 Subject: [PATCH] Player games num fix. --- rl_games/common/player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rl_games/common/player.py b/rl_games/common/player.py index 53d0ce69..202a9fa9 100644 --- a/rl_games/common/player.py +++ b/rl_games/common/player.py @@ -62,7 +62,7 @@ def __init__(self, params): 'central_value_config') is not None self.device_name = self.config.get('device_name', 'cuda') self.render_env = self.player_config.get('render', False) - self.games_num = self.player_config.get('games_num', 2000) + self.games_num = self.player_config.get('games_num', 1000000000) if 'deterministic' in self.player_config: self.is_deterministic = self.player_config['deterministic'] @@ -73,7 +73,7 @@ def __init__(self, params): self.n_game_life = self.player_config.get('n_game_life', 1) self.print_stats = self.player_config.get('print_stats', True) self.render_sleep = self.player_config.get('render_sleep', 0.002) - self.max_steps = 108000 // 4 + self.max_steps = self.player_config.get('max_steps', 100000000) self.device = torch.device(self.device_name) self.evaluation = self.player_config.get("evaluation", False)