Skip to content

Commit 2c8ce9d

Browse files
update comments
1 parent 7603ad6 commit 2c8ce9d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

lerobot/scripts/control_sim_robot.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
--run-compute-stats 0
2828
```
2929
30+
Enable the --push-to-hub 1 to push the recorded dataset to the huggingface hub.
31+
3032
- Visualize dataset:
3133
```bash
3234
python lerobot/scripts/visualize_dataset.py \
@@ -35,15 +37,17 @@
3537
--episode-index 0
3638
```
3739
38-
- Replay this test episode:
40+
- Replay a sequence of test episodes:
3941
```bash
4042
python lerobot/scripts/control_sim_robot.py replay \
43+
--robot-path lerobot/configs/robot/your_robot_config.yaml \
4144
--sim-config lerobot/configs/env/your_sim_config.yaml \
4245
--fps 30 \
4346
--root tmp/data \
44-
--repo-id $USER/koch_test \
45-
--episodes 0
47+
--repo-id $USER/robot_sim_test \
48+
--episodes 0 1 2 3
4649
```
50+
Note: The seed is saved, therefore, during replay we can load the same environment state as the one during collection.
4751
4852
- Record a full dataset in order to train a policy,
4953
30 seconds of recording for each episode, and 10 seconds to reset the environment in between episodes:
@@ -59,8 +63,8 @@
5963
```
6064
6165
**NOTE**: You can use your keyboard to control data recording flow.
62-
- Tap right arrow key '->' to early exit while recording an episode and go to resseting the environment.
63-
- Tap right arrow key '->' to early exit while resetting the environment and got to recording the next episode.
66+
- Tap right arrow key '->' to early exit while recording an episode and go to reseting the environment.
67+
- Tap right arrow key '->' to early exit while reseting the environment and got to recording the next episode.
6468
- Tap left arrow key '<-' to early exit and re-record the current episode.
6569
- Tap escape key 'esc' to stop the data recording.
6670
This might require a sudo permission to allow your terminal to monitor keyboard events.

0 commit comments

Comments
 (0)