Skip to content

Commit bb29975

Browse files
committed
improve wandb_checkpoint
1 parent f5fe0d1 commit bb29975

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

scripts/reinforcement_learning/rsl_rl/cli_args.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,8 @@ def update_rsl_rl_cfg(agent_cfg: RslRlBaseRunnerCfg, args_cli: argparse.Namespac
122122
wandb_username=args_cli.wandb_username,
123123
)
124124
agent_cfg.experiment_name = os.path.abspath(os.path.dirname(os.path.dirname(checkpoint_folder)))
125-
agent_cfg.run_name = os.path.basename(os.path.dirname(checkpoint_folder))
125+
agent_cfg.run_name += os.path.basename(os.path.dirname(checkpoint_folder)) + args_cli.wandb_run_id
126126
agent_cfg.load_checkpoint = os.path.basename(checkpoint_folder)
127-
agent_cfg.run_name = args_cli.wandb_run_id
128127
agent_cfg.load_run = os.path.basename(os.path.dirname(checkpoint_folder))
129128
print(f"[INFO] Loading run from Weights & Biases: {agent_cfg.load_run}")
130129
return agent_cfg

source/isaaclab/isaaclab/utils/wandb_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_model_checkpoint(
5454
model = models[-1]
5555
else:
5656
for remote_model in models:
57-
if int(remote_model.name.split("_")[-1].split(".")[0]) == checkpoint:
57+
if remote_model.name.split("_")[-1].split(".")[0] == checkpoint:
5858
model = remote_model
5959
break
6060
if model is None:

0 commit comments

Comments
 (0)