Skip to content

Commit 7bf5573

Browse files
remove _map_path from wandb logger
1 parent f36f24b commit 7bf5573

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

rsl_rl/utils/wandb_utils.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ def __init__(self, log_dir: str, flush_secs: int, cfg: dict) -> None:
4040
# Add log directory to wandb
4141
wandb.config.update({"log_dir": log_dir})
4242

43-
self.name_map = {
44-
"Train/mean_reward/time": "Train/mean_reward_time",
45-
"Train/mean_episode_length/time": "Train/mean_episode_length_time",
46-
}
47-
4843
def store_config(self, env_cfg: dict | object, runner_cfg: dict, alg_cfg: dict, policy_cfg: dict) -> None:
4944
wandb.config.update({"runner_cfg": runner_cfg})
5045
wandb.config.update({"policy_cfg": policy_cfg})
@@ -69,7 +64,7 @@ def add_scalar(
6964
walltime=walltime,
7065
new_style=new_style,
7166
)
72-
wandb.log({self._map_path(tag): scalar_value}, step=global_step)
67+
wandb.log({tag: scalar_value}, step=global_step)
7368

7469
def stop(self) -> None:
7570
wandb.finish()
@@ -82,9 +77,3 @@ def save_model(self, model_path: str, iter: int) -> None:
8277

8378
def save_file(self, path: str) -> None:
8479
wandb.save(path, base_path=os.path.dirname(path))
85-
86-
def _map_path(self, path: str) -> str:
87-
if path in self.name_map:
88-
return self.name_map[path]
89-
else:
90-
return path

0 commit comments

Comments
 (0)