Unverified Commit a319d443 authored by AutonomousHansen's avatar AutonomousHansen Committed by GitHub

Corrects execution command in RL training tutorial docs (#311)

# Description

Currently, the command to play a trained RL model is lacking the flag
that will make it use the latest checkpoint, despite that behavior
being described as expected in the surrounding text. This MR adds the flag.

It also removes a statement that 'by default' the above command will
load the latest checkpoint, because it could be potentially confusing as
that behavior is only 'by default' when you use the flag.

## 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
`./orbit.sh --format`
- [ ] 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
parent bff476a6
...@@ -141,9 +141,9 @@ Once the training is complete, you can visualize the trained agent by executing ...@@ -141,9 +141,9 @@ Once the training is complete, you can visualize the trained agent by executing
.. code:: bash .. code:: bash
# execute from the root directory of the repository # execute from the root directory of the repository
./orbit.sh -p source/standalone/workflows/sb3/play.py --task Isaac-Cartpole-v0 --num_envs 32 ./orbit.sh -p source/standalone/workflows/sb3/play.py --task Isaac-Cartpole-v0 --num_envs 32 --use_last_checkpoint
By default, the above command will load the latest checkpoint from the ``logs/sb3/Isaac-Cartpole-v0`` The above command will load the latest checkpoint from the ``logs/sb3/Isaac-Cartpole-v0``
directory. You can also specify a specific checkpoint by passing the ``--checkpoint`` flag. directory. You can also specify a specific checkpoint by passing the ``--checkpoint`` flag.
.. _Stable-Baselines3: https://stable-baselines3.readthedocs.io/en/master/ .. _Stable-Baselines3: https://stable-baselines3.readthedocs.io/en/master/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment