diff --git a/rsl_rl/runners/on_policy_runner.py b/rsl_rl/runners/on_policy_runner.py index 9e0a459..6ae0837 100644 --- a/rsl_rl/runners/on_policy_runner.py +++ b/rsl_rl/runners/on_policy_runner.py @@ -155,7 +155,7 @@ class OnPolicyRunner: if it % self.save_interval == 0: self.save(os.path.join(self.log_dir, f"model_{it}.pt")) ep_infos.clear() - if it == start_iter: + if it == start_iter and self.cfg.get("store_code_state", True): # obtain all the diff files git_file_paths = store_code_state(self.log_dir, self.git_status_repos) # if possible store them to wandb