Skip to content

Commit 7de6d6f

Browse files
authored
Fixes resume flag in rsl-rl cli args (#2299)
# Description Previously, the default value was None which did not allow loading the model even if `--resume` was provided. ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com>
1 parent 477b6a9 commit 7de6d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/reinforcement_learning/rsl_rl/cli_args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def add_rsl_rl_args(parser: argparse.ArgumentParser):
2727
)
2828
arg_group.add_argument("--run_name", type=str, default=None, help="Run name suffix to the log directory.")
2929
# -- load arguments
30-
arg_group.add_argument("--resume", type=bool, default=None, help="Whether to resume from a checkpoint.")
30+
arg_group.add_argument("--resume", action="store_true", default=False, help="Whether to resume from a checkpoint.")
3131
arg_group.add_argument("--load_run", type=str, default=None, help="Name of the run folder to resume from.")
3232
arg_group.add_argument("--checkpoint", type=str, default=None, help="Checkpoint file to resume from.")
3333
# -- logger arguments

0 commit comments

Comments
 (0)